parent
8698bac7f6
commit
18615610f1
20
fitsio2.h
20
fitsio2.h
|
@ -137,6 +137,20 @@ extern int Fitsio_Pthread_Status;
|
||||||
# error "can't handle long size given by _MIPS_SZLONG"
|
# error "can't handle long size given by _MIPS_SZLONG"
|
||||||
# endif
|
# 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 */
|
/* the following are all 32-bit byteswapped platforms */
|
||||||
|
|
||||||
|
@ -204,12 +218,6 @@ extern int Fitsio_Pthread_Status;
|
||||||
#define BYTESWAPPED FALSE
|
#define BYTESWAPPED FALSE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#elif defined(__riscv)
|
|
||||||
|
|
||||||
/* RISC-V is little endian */
|
|
||||||
|
|
||||||
#define BYTESWAPPED TRUE
|
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
||||||
/* assume all other machine uses the same IEEE formats as used in FITS files */
|
/* assume all other machine uses the same IEEE formats as used in FITS files */
|
||||||
|
|
Loading…
Reference in New Issue