1
0
mirror of https://gitlab.com/80486DX2-66/gists synced 2025-01-13 09:42:05 +05:30

opt_int_div.h: fix macro OPT_INT_DIV_ROUNDING

This commit is contained in:
パチュリー・ノーレッジ 2024-03-09 16:49:33 +03:00
parent 4ea244ca91
commit 195e1c177b
Signed by: 80486DX2-66
GPG Key ID: 83631EF27054609B

View File

@ -16,7 +16,7 @@
// constants
#define OPT_INT_DIV_ROUNDING \
/* 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
#define INT_BIN_DIV(a, b) ((a) >> (uintmax_t) log2l((b)))