parent
8181f73b7f
commit
ef69e49ea7
@ -1,22 +0,0 @@
|
|||||||
diff --git a/fitsio2.h b/fitsio2.h
|
|
||||||
index 27793a7..66e4bcb 100644
|
|
||||||
--- a/fitsio2.h
|
|
||||||
+++ b/fitsio2.h
|
|
||||||
@@ -96,7 +96,7 @@ extern int Fitsio_Pthread_Status;
|
|
||||||
#define BYTESWAPPED FALSE
|
|
||||||
#define LONGSIZE 32
|
|
||||||
|
|
||||||
-#elif defined(__ia64__) || defined(__x86_64__)
|
|
||||||
+#elif defined(__ia64__) || defined(__x86_64__) || defined(__AARCH64EL__)
|
|
||||||
/* Intel itanium 64-bit PC, or AMD opteron 64-bit PC */
|
|
||||||
#define BYTESWAPPED TRUE
|
|
||||||
#define LONGSIZE 64
|
|
||||||
@@ -107,7 +107,7 @@ extern int Fitsio_Pthread_Status;
|
|
||||||
#define MACHINE NATIVE
|
|
||||||
#define LONGSIZE 64
|
|
||||||
|
|
||||||
-#elif defined(__powerpc64__) || defined(__64BIT__) /* IBM 64-bit AIX powerpc*/
|
|
||||||
+#elif defined(__powerpc64__) || defined(__64BIT__) || defined(__AARCH64EB__) /* IBM 64-bit AIX powerpc*/
|
|
||||||
/* could also test for __ppc64__ or __PPC64 */
|
|
||||||
#define BYTESWAPPED FALSE
|
|
||||||
#define MACHINE NATIVE
|
|
@ -1,12 +0,0 @@
|
|||||||
diff -Naur cfitsio/imcompress.c cfitsio.new/imcompress.c
|
|
||||||
--- cfitsio/imcompress.c 2013-11-22 21:37:42.000000000 +0100
|
|
||||||
+++ cfitsio.new/imcompress.c 2017-10-02 14:59:15.109929047 +0200
|
|
||||||
@@ -6315,7 +6315,7 @@
|
|
||||||
*/
|
|
||||||
|
|
||||||
if ((infptr->Fptr)->compress_type == HCOMPRESS_1) {
|
|
||||||
- if (*status == NUM_OVERFLOW) *status = 0;
|
|
||||||
+ if ((*status == NUM_OVERFLOW) || (*status == OVERFLOW_ERR)) *status = 0;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else if (tiledatatype == TSHORT)
|
|
@ -1,31 +0,0 @@
|
|||||||
Subject: cfitsio ppc64le support
|
|
||||||
From: Michel Normand <normand@linux.vnet.ibm.com>
|
|
||||||
|
|
||||||
for ppc64le archi should define BYTESWAPPED but not MACHINE
|
|
||||||
|
|
||||||
Signed-off-by: Michel Normand <normand@linux.vnet.ibm.com>
|
|
||||||
---
|
|
||||||
fitsio2.h | 10 +++++++---
|
|
||||||
1 file changed, 7 insertions(+), 3 deletions(-)
|
|
||||||
|
|
||||||
Index: cfitsio/fitsio2.h
|
|
||||||
===================================================================
|
|
||||||
--- cfitsio.orig/fitsio2.h
|
|
||||||
+++ cfitsio/fitsio2.h
|
|
||||||
@@ -109,9 +109,13 @@ extern int Fitsio_Pthread_Status;
|
|
||||||
|
|
||||||
#elif defined(__powerpc64__) || defined(__64BIT__) || defined(__AARCH64EB__) /* IBM 64-bit AIX powerpc*/
|
|
||||||
/* could also test for __ppc64__ or __PPC64 */
|
|
||||||
-#define BYTESWAPPED FALSE
|
|
||||||
-#define MACHINE NATIVE
|
|
||||||
-#define LONGSIZE 64
|
|
||||||
+# if defined(__LITTLE_ENDIAN__)
|
|
||||||
+# define BYTESWAPPED TRUE
|
|
||||||
+# else
|
|
||||||
+# define BYTESWAPPED FALSE
|
|
||||||
+# define MACHINE NATIVE
|
|
||||||
+# endif
|
|
||||||
+# define LONGSIZE 64
|
|
||||||
|
|
||||||
#elif defined(_MIPS_SZLONG)
|
|
||||||
|
|
Loading…
Reference in new issue