2018-02-16 21:40:19 +01:00
|
|
|
Index: numpy-1.14.0/numpy/core/include/numpy/npy_cpu.h
|
|
|
|
===================================================================
|
|
|
|
--- numpy-1.14.0.orig/numpy/core/include/numpy/npy_cpu.h
|
|
|
|
+++ numpy-1.14.0/numpy/core/include/numpy/npy_cpu.h
|
2018-10-02 19:44:22 +02:00
|
|
|
@@ -18,6 +18,7 @@
|
2018-02-16 21:40:19 +01:00
|
|
|
* NPY_CPU_ARCEL
|
|
|
|
* NPY_CPU_ARCEB
|
2018-10-02 19:44:22 +02:00
|
|
|
* NPY_CPU_RISCV64
|
2018-02-16 21:40:19 +01:00
|
|
|
+ * NPY_CPU_RISCV
|
|
|
|
*/
|
|
|
|
#ifndef _NPY_CPUARCH_H_
|
|
|
|
#define _NPY_CPUARCH_H_
|
2018-10-02 19:44:22 +02:00
|
|
|
@@ -102,6 +103,8 @@
|
2018-02-16 21:40:19 +01:00
|
|
|
#define NPY_CPU_ARCEB
|
2018-10-02 19:44:22 +02:00
|
|
|
#elif defined(__riscv) && defined(__riscv_xlen) && __riscv_xlen == 64
|
|
|
|
#define NPY_CPU_RISCV64
|
2018-02-16 21:40:19 +01:00
|
|
|
+#elif defined(__riscv)
|
|
|
|
+ #define NPY_CPU_RISCV
|
|
|
|
#else
|
|
|
|
#error Unknown CPU, please report this to numpy maintainers with \
|
|
|
|
information about your platform (OS, CPU and compiler)
|