From 4c893cc50b7c668a28bd7604c7d8429b50057b42 Mon Sep 17 00:00:00 2001 From: doupengda Date: Tue, 14 Mar 2023 20:28:01 +0800 Subject: [PATCH] add loongarch64 support --- fitsio2.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/fitsio2.h b/fitsio2.h index 1adb17b..6c2d598 100644 --- a/fitsio2.h +++ b/fitsio2.h @@ -137,6 +137,12 @@ extern int Fitsio_Pthread_Status; # error "can't handle long size given by _MIPS_SZLONG" # endif +#elif defined(__loongarch64) + +#define BYTESWAPPED TRUE +#define MACHINE OTHERTYPE +#define LONGSIZE 64 + #elif defined(__riscv) /* RISC-V is always little endian */