Gbp-Pq: Name 06-riscv64.diff
This commit is contained in:
Debian Astronomy Maintainers 2022-05-14 03:24:03 +08:00 committed by openKylinBot
parent 8698bac7f6
commit 18615610f1
1 changed files with 14 additions and 6 deletions

View File

@ -137,6 +137,20 @@ extern int Fitsio_Pthread_Status;
# error "can't handle long size given by _MIPS_SZLONG"
# endif
#elif defined(__riscv)
/* RISC-V is little endian */
#define BYTESWAPPED TRUE
# if __riscv_xlen == 32
# define LONGSIZE 32
# elif __riscv_xlen == 64
# define LONGSIZE 64
# else
# error "can't handle long size given by __riscv_xlen"
# endif
/* ============================================================== */
/* the following are all 32-bit byteswapped platforms */
@ -204,12 +218,6 @@ extern int Fitsio_Pthread_Status;
#define BYTESWAPPED FALSE
#endif
#elif defined(__riscv)
/* RISC-V is little endian */
#define BYTESWAPPED TRUE
#else
/* assume all other machine uses the same IEEE formats as used in FITS files */