diff options
| author | Qiyu8 <fangchunlin@huawei.com> | 2020-12-15 09:49:19 +0800 |
|---|---|---|
| committer | Qiyu8 <fangchunlin@huawei.com> | 2020-12-15 09:49:19 +0800 |
| commit | a08acd460fbe133b316b5e963a54dfa8208c036e (patch) | |
| tree | 92988a0219fa0c341e6ec0c989b6c6ff4873b9f1 /numpy/core/include | |
| parent | 797477d40cbea905a1a4b8bd6c99376f6dc1e1a7 (diff) | |
| download | numpy-a08acd460fbe133b316b5e963a54dfa8208c036e.tar.gz | |
add ARMV7 macro define header in order to prevent bus error.
Diffstat (limited to 'numpy/core/include')
| -rw-r--r-- | numpy/core/include/numpy/npy_cpu.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/numpy/core/include/numpy/npy_cpu.h b/numpy/core/include/numpy/npy_cpu.h index 4dbf9d84e..88f22a248 100644 --- a/numpy/core/include/numpy/npy_cpu.h +++ b/numpy/core/include/numpy/npy_cpu.h @@ -84,6 +84,9 @@ # error Unknown ARM CPU, please report this to numpy maintainers with \ information about your platform (OS, CPU and compiler) #endif + #if !(defined(__aarch64__) || defined(_M_ARM64)) + #define NPY_CPU_ARMV7 + #endif #elif defined(__sh__) && defined(__LITTLE_ENDIAN__) #define NPY_CPU_SH_LE #elif defined(__sh__) && defined(__BIG_ENDIAN__) |
