Source: healpy Version: 1.16.6-1 Severity: wishlist Tags: ftbfs patch User: debian-loonga...@lists.debian.org Usertags: loong64
Dear maintainers, Compiling healpy package failed on my local loong64 rootfs environment. I have added loongarch64 support in healpy package. Please consider the patch I attached. Your opinions are welcome. Thanks, Dandan Zhang
Description: Add loongarch64 support Last-Update: 2024-04-01 --- healpy-1.16.6.orig/cfitsio/fitsio2.h +++ healpy-1.16.6/cfitsio/fitsio2.h @@ -151,6 +151,16 @@ extern int Fitsio_Pthread_Status; # 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 */