File: support-loong64.patch

package info (click to toggle)
scm 5f4-3.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,320 kB
  • sloc: ansic: 58,822; lisp: 17,257; makefile: 1,241; sh: 555; asm: 288
file content (26 lines) | stat: -rw-r--r-- 645 bytes parent folder | download | duplicates (2)
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
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