From: zhaixiaojuan <zhaixiaojuan@loongson.cn>
Date: Tue, 26 Nov 2024 10:21:06 +0800
Subject: support-loong64

---
 scmfig.h | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/scmfig.h b/scmfig.h
index af972a1..e1d93f0 100644
--- a/scmfig.h
+++ b/scmfig.h
@@ -297,6 +297,13 @@ rgx.c	init_rgx();	regcomp and regexec. */
 # define SHORT_INT
 # define CDR_DOUBLES
 #endif
+#ifdef __loongarch64
+# define SHORT_INT
+# define CDR_DOUBLES
+# ifdef __GNUC__                /* Includes gcc, clang, and llvm-gcc */
+#  define SCM_LLONG __int128
+# endif
+#endif
 #ifdef MSDOS			/* Microsoft C 5.10 and 6.00A */
 # ifndef GO32
 #  define SHORT_INT
