Debian Codegraph @

src/boxed_double.c

raw symbols SCIP
1 #cxx . . $ `<file>/src/boxed_double.c`/include <cgreen/boxed_double.h>cxx . . $ `<file>/include/cgreen/boxed_double.h`/
2 #include <stdint.h>
3 #include <stdlib.h>
4
5 /* NOTE: while returning BoxedDouble* here seems logical, it forces casts all over the place */
6 intptr_tcxx . . $ intptr_t# box_doublecxx . . $ box_double(a6e4a4c8b00c35a3).(double value) {
7 BoxedDoublecxx . . $ BoxedDouble# *box = (BoxedDoublecxx . . $ BoxedDouble# *) malloccxx . . $ malloc(bfcfa4d6b7f7ef64).(sizeof(BoxedDoublecxx . . $ BoxedDouble#));
8 box->valuecxx . . $ $anonymous_type_5ef6a291d20409a0_0#value. = value;
9 return (intptr_tcxx . . $ intptr_t#)box;
10 }
11
12 double unbox_doublecxx . . $ unbox_double(66f4a6ec74012662).(intptr_tcxx . . $ intptr_t# box) {
13 double value = as_doublecxx . . $ as_double(66f4a6ec74012662).(box);
14 freecxx . . $ free(5d22bdacc48458e8).((BoxedDoublecxx . . $ BoxedDouble# *)box);
15 return value;
16 }
17
18 double as_doublecxx . . $ as_double(66f4a6ec74012662).(intptr_tcxx . . $ intptr_t# box) {
19 return ((BoxedDoublecxx . . $ BoxedDouble# *)box)->valuecxx . . $ $anonymous_type_5ef6a291d20409a0_0#value.;
20 }