diff --git a/src/builtins/arithd.c b/src/builtins/arithd.c index 938a76d8..d9cc0f2c 100644 --- a/src/builtins/arithd.c +++ b/src/builtins/arithd.c @@ -41,11 +41,13 @@ B sub_c1(B t, B x); B fne_c1(B t, B x); B shape_c2(B t, B w, B x); +// TODO move to h.h +typedef float f32; + // all divint/floordiv/modint assume integer arguments // floordiv will return float result only on ¯2147483648÷¯1 or n÷0, but may not otherwise squeeze integer types; integer argument requirement may be relaxed in the future // divint will return float result if there's a fractional result, or in overflow cases same as floordiv -// TODO overflow-checked Singeli code for _AA cases? -typedef float f32; +// TODO overflow-checked Singeli code for exact integer divint, and maybe floordiv_AA #define DIVLOOP(RE, WE, EXPR) RE* rp; B r=m_##RE##arrc(&rp, w); usz ia=IA(w); WE* wp=WE##any_ptr(w); for(ux i=0; i