1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66
|
From: Gwen Weinholt <git@weinholt.se>
Date: Sun, 12 Jan 2025 22:55:40 +0100
Subject: Define SCM_LLONG on 64-bit archs
---
scmfig.h | 21 +++++++++++++++++++++
1 file changed, 21 insertions(+)
diff --git a/scmfig.h b/scmfig.h
index ed5f732..999c3f2 100644
--- a/scmfig.h
+++ b/scmfig.h
@@ -259,13 +259,22 @@ rgx.c init_rgx(); regcomp and regexec. */
#ifdef __aarch64__
# define SHORT_INT
# define CDR_DOUBLES
+# ifdef __GNUC__ /* Includes gcc, clang, and llvm-gcc */
+# define SCM_LLONG __int128
+# endif
#endif
#ifdef __alpha
# define SHORT_INT
+# ifdef __GNUC__ /* Includes gcc, clang, and llvm-gcc */
+# define SCM_LLONG __int128
+# endif
#endif
#ifdef __ia64__
# define SHORT_INT
# define CDR_DOUBLES
+# ifdef __GNUC__ /* Includes gcc, clang, and llvm-gcc */
+# define SCM_LLONG __int128
+# endif
#endif
#ifdef __x86_64
# define SHORT_INT
@@ -284,18 +293,30 @@ rgx.c init_rgx(); regcomp and regexec. */
#ifdef __powerpc64__
# define SHORT_INT
# define CDR_DOUBLES
+# ifdef __GNUC__ /* Includes gcc, clang, and llvm-gcc */
+# define SCM_LLONG __int128
+# endif
#endif
#ifdef __mips64
# define SHORT_INT
# define CDR_DOUBLES
+# ifdef __GNUC__ /* Includes gcc, clang, and llvm-gcc */
+# define SCM_LLONG __int128
+# endif
#endif
#ifdef __riscv
# define SHORT_INT
# define CDR_DOUBLES
+# ifdef __GNUC__ /* Includes gcc, clang, and llvm-gcc */
+# define SCM_LLONG __int128
+# endif
#endif
#ifdef __s390x__
# define SHORT_INT
# define CDR_DOUBLES
+# ifdef __GNUC__ /* Includes gcc, clang, and llvm-gcc */
+# define SCM_LLONG __int128
+# endif
#endif
#ifdef __loongarch64
# define SHORT_INT
|