Cyclone Scheme
0.28.0
|
◆ return_inexact_double_or_cplx_op_no_cps
Value:
double unboxed; \
Cyc_check_num(data, z); \
if (obj_is_int(z)) { \
unboxed = OP(obj_obj2int(z)); \
unboxed = OP(((integer_type *)z)->value); \
unboxed = OP(mp_get_double(&bignum_value(z))); \
double complex unboxed = CPLX_OP(complex_num_value(z)); \
assign_complex_num(ptr, unboxed); \
return ptr; \
} else { \
unboxed = OP(((double_type *)z)->value); \
} \
assign_double(ptr, unboxed); \
return ptr;
Extract double or complex number and return it to caller |