mirror of
https://gitlab.com/80486DX2-66/gists
synced 2025-01-13 18:52:03 +05:30
opt_int_div.h: fix macro OPT_INT_DIV_ROUNDING
This commit is contained in:
parent
4ea244ca91
commit
195e1c177b
@ -16,7 +16,7 @@
|
|||||||
// constants
|
// constants
|
||||||
#define OPT_INT_DIV_ROUNDING \
|
#define OPT_INT_DIV_ROUNDING \
|
||||||
/* 10^OPT_INT_DIV_TEST_PRECISION */ \
|
/* 10^OPT_INT_DIV_TEST_PRECISION */ \
|
||||||
powl(10.l, (long double) OPT_INT_DIV_TEST_PRECISION) \
|
powl(10.l, (long double) OPT_INT_DIV_TEST_PRECISION)
|
||||||
|
|
||||||
// helper functions
|
// helper functions
|
||||||
#define INT_BIN_DIV(a, b) ((a) >> (uintmax_t) log2l((b)))
|
#define INT_BIN_DIV(a, b) ((a) >> (uintmax_t) log2l((b)))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user