8000 Merge pull request #28092 from xen0n/loongarch-lp64 · ngoldbaum/numpy@af9f607 · GitHub
[go: up one dir, main page]

Skip to content

Commit af9f607

Browse files
authored
Merge pull request numpy#28092 from xen0n/loongarch-lp64
MAINT: LoongArch: switch away from the __loongarch64 preprocessor macro
2 parents 2f3549c + 1652d31 commit af9f607

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

numpy/_core/include/numpy/npy_cpu.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@
109109
#elif __riscv_xlen == 32
110110
#define NPY_CPU_RISCV32
111111
#endif
112-
#elif defined(__loongarch64)
112+
#elif defined(__loongarch_lp64)
113113
#define NPY_CPU_LOONGARCH64
114114
#elif defined(__EMSCRIPTEN__)
115115
/* __EMSCRIPTEN__ is defined by emscripten: an LLVM-to-Web compiler */

numpy/_core/src/common/npy_cpu_features.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -668,7 +668,7 @@ npy__cpu_init_features(void)
668668

669669
/***************** LoongArch ******************/
670670

671-
#elif defined(__loongarch64)
671+
#elif defined(__loongarch_lp64)
672672

673673
#include <sys/auxv.h>
674674
#include <asm/hwcap.h>
@@ -685,7 +685,6 @@ npy__cpu_init_features(void)
685685
}
686686
}
687687

688-
689688
/***************** ARM ******************/
690689

691690
#elif defined(__arm__) || defined(__aarch64__) || defined(_M_ARM64)

0 commit comments

Comments
 (0)
0