about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2023-12-05 16:39:49 +0100
committerbptato <nincsnevem662@gmail.com>2023-12-05 16:39:49 +0100
commitccf177cc125e120b338612bbf24966faf3fd87fa (patch)
tree17e07b0fd43f839d4f213c7b6ddd19b880275325
parenta7ded568d2c31e286f6e3fdcd341948978624eb6 (diff)
downloadchawan-ccf177cc125e120b338612bbf24966faf3fd87fa.tar.gz
quickjs/libbf: add missing ifdef
-rw-r--r--lib/quickjs/libbf.c2
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)