diff options
author | bptato <nincsnevem662@gmail.com> | 2023-12-05 16:39:49 +0100 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2023-12-05 16:39:49 +0100 |
commit | ccf177cc125e120b338612bbf24966faf3fd87fa (patch) | |
tree | 17e07b0fd43f839d4f213c7b6ddd19b880275325 | |
parent | a7ded568d2c31e286f6e3fdcd341948978624eb6 (diff) | |
download | chawan-ccf177cc125e120b338612bbf24966faf3fd87fa.tar.gz |
quickjs/libbf: add missing ifdef
-rw-r--r-- | lib/quickjs/libbf.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/quickjs/libbf.c b/lib/quickjs/libbf.c index 234b956b..e24c1673 100644 --- a/lib/quickjs/libbf.c +++ b/lib/quickjs/libbf.c @@ -136,6 +136,7 @@ static inline slimb_t ceil_div(slimb_t a, slimb_t b) return a / b; } +#ifdef USE_BF_DEC /* b must be >= 1 */ static inline slimb_t floor_div(slimb_t a, slimb_t b) { @@ -145,6 +146,7 @@ static inline slimb_t floor_div(slimb_t a, slimb_t b) return (a - b + 1) / b; } } +#endif /* USE_BF_DEC */ /* return r = a modulo b (0 <= r <= b - 1. b must be >= 1 */ static inline limb_t smod(slimb_t a, slimb_t b) |