--- numpy/core/include/numpy/npy_cpu.h | 3 +++ numpy/core/include/numpy/npy_endian.h | 1 + 2 files changed, 4 insertions(+) --- numpy-1.4.1.orig/numpy/core/include/numpy/npy_cpu.h +++ numpy-1.4.1/numpy/core/include/numpy/npy_cpu.h @@ -61,10 +61,13 @@ #define NPY_CPU_SH_BE #elif defined(__MIPSEL__) #define NPY_CPU_MIPSEL #elif defined(__MIPSEB__) #define NPY_CPU_MIPSEB +#elif defined(__aarch64__) + #define NPY_CPU_AARCH64 + #define HAVE_LDOUBLE_IEEE_DOUBLE_16_BYTES_BE #else #error Unknown CPU, please report this to numpy maintainers with \ information about your platform (OS, CPU and compiler) #endif --- numpy-1.4.1.orig/numpy/core/include/numpy/npy_endian.h +++ numpy-1.4.1/numpy/core/include/numpy/npy_endian.h @@ -23,10 +23,11 @@ #if defined(NPY_CPU_X86) \ || defined(NPY_CPU_AMD64) \ || defined(NPY_CPU_IA64) \ || defined(NPY_CPU_ALPHA) \ || defined(NPY_CPU_ARMEL) \ + || defined(NPY_CPU_AARCH64) \ || defined(NPY_CPU_SH_LE) \ || defined(NPY_CPU_MIPSEL) #define NPY_BYTE_ORDER NPY_LITTLE_ENDIAN #elif defined(NPY_CPU_PPC) \ || defined(NPY_CPU_SPARC) \