This commit is contained in:
Justin Ethier 2023-09-05 19:04:18 -07:00
parent 46e7e193df
commit cc5d1d5d65
2 changed files with 3 additions and 1 deletions

View file

@ -478,6 +478,7 @@ int Cyc_have_mstreams();
return_closcall1(data, cont, z); \
} else { \
i = (int)OP(((double_type *)z)->value); \
TODO: make_double, see return_inexact_double_or_cplx_op
} \
return_closcall1(data, cont, obj_int2obj(i))
@ -495,6 +496,7 @@ int Cyc_have_mstreams();
return z; \
} else { \
i = (int)OP(((double_type *)z)->value); \
TODO: assign_double
} \
return obj_int2obj(i);

View file

@ -1374,7 +1374,7 @@
"(void *data, int argc, closure _, object k, object z)"
" return_exact_double_op(data, k, (int), z); "
"(void *data, object ptr, object z)"
" return_exact_double_op_no_cps(data, ptr, (int), z);")
" return_exact_double_op_no_cps(data, ptr, trunc, z);")
(define-c round
"(void *data, int argc, closure _, object k, object z)"
" return_exact_double_op(data, k, round, z); "