File: fitsio2.h.patch

package info (click to toggle)
python-fitsio 1.2.5%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,200 kB
  • sloc: ansic: 9,410; python: 5,802; makefile: 9
file content (21 lines) | stat: -rw-r--r-- 621 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
--- cfitsio-4.2.0/fitsio2.h	2023-08-09 10:23:45.508392645 +0800
+++ cfitsio-4.2.0/fitsio2.h	2023-08-09 10:29:44.960511085 +0800
@@ -151,6 +151,18 @@
 #    error "can't handle long size given by __riscv_xlen"
 #  endif
 
+#elif defined(__loongarch__)
+
+#define BYTESWAPPED TRUE
+
+#  if __loongarch_grlen == 32
+#    define LONGSIZE 32
+#  elif __loongarch_grlen == 64
+#    define LONGSIZE 64
+#  else
+#    error "can't handle long size given by __loongarch_grlen"
+#  endif
+
 /* ============================================================== */
 /*  the following are all 32-bit byteswapped platforms            */