diff options
| author | Charles Harris <charlesr.harris@gmail.com> | 2021-08-12 09:50:58 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-08-12 09:50:58 -0600 |
| commit | a467114a39e3e6cc704fbd5851360aef699152f4 (patch) | |
| tree | 572fa1d7b4d385700a6791becd180c60aa5a7444 /numpy | |
| parent | 9d1e010348a57ee9963d98bd5043a9a65381b5b4 (diff) | |
| parent | 5f7f37ab49718e13038998673830411342e5ecdd (diff) | |
| download | numpy-a467114a39e3e6cc704fbd5851360aef699152f4.tar.gz | |
Merge pull request #19527 from loongson-zn/main
BLD: Add LoongArch support
Diffstat (limited to 'numpy')
| -rw-r--r-- | numpy/core/include/numpy/npy_cpu.h | 3 | ||||
| -rw-r--r-- | numpy/core/include/numpy/npy_endian.h | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/numpy/core/include/numpy/npy_cpu.h b/numpy/core/include/numpy/npy_cpu.h index bc1fad72f..e975b0105 100644 --- a/numpy/core/include/numpy/npy_cpu.h +++ b/numpy/core/include/numpy/npy_cpu.h @@ -18,6 +18,7 @@ * NPY_CPU_ARCEL * NPY_CPU_ARCEB * NPY_CPU_RISCV64 + * NPY_CPU_LOONGARCH * NPY_CPU_WASM */ #ifndef _NPY_CPUARCH_H_ @@ -103,6 +104,8 @@ #define NPY_CPU_ARCEB #elif defined(__riscv) && defined(__riscv_xlen) && __riscv_xlen == 64 #define NPY_CPU_RISCV64 +#elif defined(__loongarch__) + #define NPY_CPU_LOONGARCH #elif defined(__EMSCRIPTEN__) /* __EMSCRIPTEN__ is defined by emscripten: an LLVM-to-Web compiler */ #define NPY_CPU_WASM diff --git a/numpy/core/include/numpy/npy_endian.h b/numpy/core/include/numpy/npy_endian.h index aa367a002..620595bec 100644 --- a/numpy/core/include/numpy/npy_endian.h +++ b/numpy/core/include/numpy/npy_endian.h @@ -49,6 +49,7 @@ || defined(NPY_CPU_PPC64LE) \ || defined(NPY_CPU_ARCEL) \ || defined(NPY_CPU_RISCV64) \ + || defined(NPY_CPU_LOONGARCH) \ || defined(NPY_CPU_WASM) #define NPY_BYTE_ORDER NPY_LITTLE_ENDIAN #elif defined(NPY_CPU_PPC) \ |
