blob: d9fbae8581be1f7c0dc03cf016b3546aaed9e417 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
diff --git a/numpy/core/include/numpy/npy_cpu.h b/numpy/core/include/numpy/npy_cpu.h
index 83c5259..59d246a 100644
--- a/numpy/core/include/numpy/npy_cpu.h
+++ b/numpy/core/include/numpy/npy_cpu.h
@@ -58,6 +58,10 @@
#define NPY_CPU_SH_LE
#elif defined(__sh__) && defined(__BIG_ENDIAN__)
#define NPY_CPU_SH_BE
+#elif defined(__MIPSEL__)
+ #define NPY_CPU_MIPSEL
+#elif defined(__MIPSEB__)
+ #define NPY_CPU_MIPSEB
#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 09b9172..f91d10d 100644
--- a/numpy/core/include/numpy/npy_endian.h
+++ b/numpy/core/include/numpy/npy_endian.h
@@ -24,13 +24,13 @@
#if defined(NPY_CPU_X86) || defined(NPY_CPU_AMD64)\
|| defined(NPY_CPU_IA64) || defined(NPY_CPU_ALPHA)\
|| defined(NPY_CPU_ARMEL)\
- || defined(NPY_CPU_SH_LE)
+ || defined(NPY_CPU_SH_LE) || defined(NPY_CPU_MIPSEL)
#define NPY_LITTLE_ENDIAN
#define NPY_BYTE_ORDER 1234
#elif defined(NPY_CPU_PPC) || defined(NPY_CPU_SPARC)\
|| defined(NPY_CPU_S390) || defined(NPY_CPU_PARISC)\
|| defined(NPY_CPU_ARMEB)\
- || defined(NPY_CPU_SH_BE)
+ || defined(NPY_CPU_SH_BE) || defined(NPY_CPU_MIPSEB)
#define NPY_BIG_ENDIAN
#define NPY_BYTE_ORDER 4321
#else
|