diff options
author | bptato <nincsnevem662@gmail.com> | 2024-04-14 15:10:06 +0200 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2024-04-14 19:00:24 +0200 |
commit | ffa46fbb1cd4d3104f27d9fe55a0ac5520aa93ca (patch) | |
tree | a3359607c388674fa7d3595fe77e9bbf0613db76 /lib/quickjs | |
parent | 13ada1015158d65d7a3f57a89cc21769cf879934 (diff) | |
download | chawan-ffa46fbb1cd4d3104f27d9fe55a0ac5520aa93ca.tar.gz |
Revert bignum build fixes
Importing patch from upstream instead. This reverts commits ccf177cc125e120b338612bbf24966faf3fd87fa and 6776f4dba975137f4034b1295c0f1958b752a2cb.
Diffstat (limited to 'lib/quickjs')
-rw-r--r-- | lib/quickjs/libbf.c | 2 | ||||
-rw-r--r-- | lib/quickjs/quickjs.c | 8 |
2 files changed, 0 insertions, 10 deletions
diff --git a/lib/quickjs/libbf.c b/lib/quickjs/libbf.c index 7f497a85..dee394ac 100644 --- a/lib/quickjs/libbf.c +++ b/lib/quickjs/libbf.c @@ -136,7 +136,6 @@ 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) { @@ -146,7 +145,6 @@ 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) diff --git a/lib/quickjs/quickjs.c b/lib/quickjs/quickjs.c index 3a8bee53..9cf4afbf 100644 --- a/lib/quickjs/quickjs.c +++ b/lib/quickjs/quickjs.c @@ -36057,11 +36057,7 @@ static JSValue JS_ReadBigNum(BCReaderState *s, int tag) JS_ThrowInternalError(s->ctx, "invalid bignum length"); goto fail; } -#ifdef CONFIG_BIGNUM if (tag != BC_TAG_BIG_DECIMAL) -#else - if (TRUE) -#endif l = (len + sizeof(limb_t) - 1) / sizeof(limb_t); else l = (len + LIMB_DIGITS - 1) / LIMB_DIGITS; @@ -36069,11 +36065,7 @@ static JSValue JS_ReadBigNum(BCReaderState *s, int tag) JS_ThrowOutOfMemory(s->ctx); goto fail; } -#ifdef CONFIG_BIGNUM if (tag != BC_TAG_BIG_DECIMAL) { -#else - if (TRUE) { -#endif n = len & (sizeof(limb_t) - 1); if (n != 0) { v = 0; |