diff options
author | Fabrice Bellard <fabrice@bellard.org> | 2025-03-19 11:43:31 +0100 |
---|---|---|
committer | Fabrice Bellard <fabrice@bellard.org> | 2025-03-19 11:43:31 +0100 |
commit | 6de88859e7fdb8c6418e1033e75ca4900e022b51 (patch) | |
tree | b06b58bcb236554c12842d533fffd30cc72b1546 /quickjs.h | |
parent | 96e7965cf42e8f6560b2e18b7da80d3f57444d08 (diff) | |
download | quickjs-6de88859e7fdb8c6418e1033e75ca4900e022b51.tar.gz quickjs-6de88859e7fdb8c6418e1033e75ca4900e022b51.zip |
more bignum cleanup
Diffstat (limited to 'quickjs.h')
-rw-r--r-- | quickjs.h | 24 |
1 files changed, 2 insertions, 22 deletions
@@ -74,10 +74,8 @@ typedef uint32_t JSAtom; enum { /* all tags with a reference count are negative */ - JS_TAG_FIRST = -11, /* first negative tag */ - JS_TAG_BIG_DECIMAL = -11, - JS_TAG_BIG_INT = -10, - JS_TAG_BIG_FLOAT = -9, + JS_TAG_FIRST = -9, /* first negative tag */ + JS_TAG_BIG_INT = -9, JS_TAG_SYMBOL = -8, JS_TAG_STRING = -7, JS_TAG_MODULE = -3, /* used internally */ @@ -409,12 +407,6 @@ void JS_AddIntrinsicMapSet(JSContext *ctx); void JS_AddIntrinsicTypedArrays(JSContext *ctx); void JS_AddIntrinsicPromise(JSContext *ctx); void JS_AddIntrinsicBigInt(JSContext *ctx); -void JS_AddIntrinsicBigFloat(JSContext *ctx); -void JS_AddIntrinsicBigDecimal(JSContext *ctx); -/* enable operator overloading */ -void JS_AddIntrinsicOperators(JSContext *ctx); -/* enable "use math" */ -void JS_EnableBignumExt(JSContext *ctx, JS_BOOL enable); JSValue js_string_codePointRange(JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv); @@ -614,18 +606,6 @@ static inline JS_BOOL JS_IsBigInt(JSContext *ctx, JSValueConst v) return tag == JS_TAG_BIG_INT || tag == JS_TAG_SHORT_BIG_INT; } -static inline JS_BOOL JS_IsBigFloat(JSValueConst v) -{ - int tag = JS_VALUE_GET_TAG(v); - return tag == JS_TAG_BIG_FLOAT; -} - -static inline JS_BOOL JS_IsBigDecimal(JSValueConst v) -{ - int tag = JS_VALUE_GET_TAG(v); - return tag == JS_TAG_BIG_DECIMAL; -} - static inline JS_BOOL JS_IsBool(JSValueConst v) { return JS_VALUE_GET_TAG(v) == JS_TAG_BOOL; |