python-numpy/riscv.patch

22 lines
742 B
Diff
Raw Normal View History

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
@@ -17,6 +17,7 @@
* NPY_CPU_SH_BE
* NPY_CPU_ARCEL
* NPY_CPU_ARCEB
+ * NPY_CPU_RISCV
*/
#ifndef _NPY_CPUARCH_H_
#define _NPY_CPUARCH_H_
@@ -82,6 +83,8 @@
#define NPY_CPU_ARCEL
#elif defined(__arc__) && defined(__BIG_ENDIAN__)
#define NPY_CPU_ARCEB
+#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)