diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2009-07-19 17:32:49 +0000 |
---|---|---|
committer | Charles Harris <charlesr.harris@gmail.com> | 2009-07-19 17:32:49 +0000 |
commit | e84fbd6faf361c7bfe346b6a9ffdffd1ad330114 (patch) | |
tree | 41ae83c96ad4ebabe132bca7ae1088a9c4fffd37 | |
parent | f6554e41f697ac3cd9f7c7a3f35e4850ca3c5f29 (diff) | |
download | numpy-e84fbd6faf361c7bfe346b6a9ffdffd1ad330114.tar.gz |
Add parisc and alpha to supported cpus. Patch from armin76, fixes ticket #1178.
-rw-r--r-- | numpy/core/include/numpy/npy_cpu.h | 10 | ||||
-rw-r--r-- | numpy/core/include/numpy/npy_endian.h | 4 |
2 files changed, 8 insertions, 6 deletions
diff --git a/numpy/core/include/numpy/npy_cpu.h b/numpy/core/include/numpy/npy_cpu.h index 106901e55..11f647544 100644 --- a/numpy/core/include/numpy/npy_cpu.h +++ b/numpy/core/include/numpy/npy_cpu.h @@ -8,7 +8,8 @@ * NPY_CPU_SPARC * NPY_CPU_S390 * NPY_CPU_IA64 - * NPY_CPU_PARISC + * NPY_CPU_HPPA + * NPY_CPU_ALPHA */ #ifndef _NPY_CPUARCH_H_ #define _NPY_CPUARCH_H_ @@ -42,9 +43,10 @@ #define NPY_CPU_S390 #elif defined(__ia64) #define NPY_CPU_IA64 -#elif defined(__parisc__) - /* XXX: Not sure about this one... */ - #define NPY_CPU_PARISC +#elif defined(__hppa__) + #define NPY_CPU_HPPA +#elif defined(__alpha__) + #define NPY_CPU_ALPHA #else #error Unknown CPU, please report this to numpy maintainers with \ information about your platform (OS, CPU and compiler) diff --git a/numpy/core/include/numpy/npy_endian.h b/numpy/core/include/numpy/npy_endian.h index e0d534c86..88bce4827 100644 --- a/numpy/core/include/numpy/npy_endian.h +++ b/numpy/core/include/numpy/npy_endian.h @@ -21,10 +21,10 @@ #define NPY_BIG_ENDIAN 4321 #if defined(NPY_CPU_X86) || defined(NPY_CPU_AMD64)\ - || defined(NPY_CPU_IA64) + || defined(NPY_CPU_IA64) || defined(NPY_CPU_ALPHA) #define NPY_BYTE_ORDER NPY_LITTLE_ENDIAN #elif defined(NPY_CPU_PPC) || defined(NPY_CPU_SPARC)\ - || defined(NPY_CPU_S390) || defined(NPY_CPU_PARISC) || defined(NPY_CPU_PPC64) + || defined(NPY_CPU_S390) || defined(NPY_CPU_HPPA) || defined(NPY_CPU_PPC64) #define NPY_BYTE_ORDER NPY_BIG_ENDIAN #else #error Unknown CPU: can not set endianness |