]> git.kaiwu.me - quickjs.git/commitdiff
test 128 bit integer support (github issue #125)
authorFabrice Bellard <fabrice@bellard.org>
Fri, 22 Dec 2023 10:02:05 +0000 (11:02 +0100)
committerFabrice Bellard <fabrice@bellard.org>
Fri, 22 Dec 2023 10:02:05 +0000 (11:02 +0100)
libbf.h

diff --git a/libbf.h b/libbf.h
index 48e9d956a292b35a50e3c4b58d8279a946db5489..0457c1808698237d867207f47ba085297ad6e060 100644 (file)
--- a/libbf.h
+++ b/libbf.h
@@ -27,7 +27,7 @@
 #include <stddef.h>
 #include <stdint.h>
 
-#if INTPTR_MAX >= INT64_MAX
+#if defined(__SIZEOF_INT128__) && (INTPTR_MAX >= INT64_MAX)
 #define LIMB_LOG2_BITS 6
 #else
 #define LIMB_LOG2_BITS 5