Skip to content
This repository has been archived by the owner on Feb 27, 2024. It is now read-only.

add loongarch64 support #12

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions fitsio2.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down