0782c0a445
- Update to version 1.15.2 Changes documented in release notes: https://github.com/numpy/numpy/blob/master/doc/release/1.15.2-notes.rst - Update to version 1.15.1 Changes documented in release notes: https://github.com/numpy/numpy/blob/master/doc/release/1.15.1-notes.rst - Update to version 1.15.0 Changes documented in release notes: https://github.com/numpy/numpy/blob/master/doc/release/1.15.0-notes.rst - Update to version 1.14.6 Changes documented in release notes: https://github.com/numpy/numpy/blob/master/doc/release/1.14.6-notes.rst - Rebase numpy-1.9.0-remove-__declspec.patch - Rebase riscv.patch OBS-URL: https://build.opensuse.org/request/show/638249 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-numpy?expand=0&rev=70
22 lines
768 B
Diff
22 lines
768 B
Diff
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
|
|
@@ -18,6 +18,7 @@
|
|
* NPY_CPU_ARCEL
|
|
* NPY_CPU_ARCEB
|
|
* NPY_CPU_RISCV64
|
|
+ * NPY_CPU_RISCV
|
|
*/
|
|
#ifndef _NPY_CPUARCH_H_
|
|
#define _NPY_CPUARCH_H_
|
|
@@ -102,6 +103,8 @@
|
|
#define NPY_CPU_ARCEB
|
|
#elif defined(__riscv) && defined(__riscv_xlen) && __riscv_xlen == 64
|
|
#define NPY_CPU_RISCV64
|
|
+#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)
|