noinline float product
This commit is contained in:
parent
e7cc8ec444
commit
6f5c329e22
@ -68,7 +68,7 @@ static f64 (*const sum_fns[])(void*, usz, f64) = { sum_i8, sum_i16, sum_i32, sum
|
||||
|
||||
// Try to keep to i32 product, go to f64 on overflow or non-i32 initial
|
||||
#define DEF_INT_PROD(T) \
|
||||
static f64 prod_##T(void* xv, usz i, f64 init) { \
|
||||
static NOINLINE f64 prod_##T(void* xv, usz i, f64 init) { \
|
||||
while (i--) init*=((T*)xv)[i]; return init; \
|
||||
} \
|
||||
static f64 prod_int_##T(void* xv, usz ia, i32 init) { \
|
||||
|
||||
Loading…
Reference in New Issue
Block a user