mcst-linux-kernel/patches-2024.06.26/python3-numpy-1.24.2/0002-fix-illegal-instructio...

33 lines
736 B
Diff
Raw Normal View History

2024-07-09 13:51:45 +03:00
diff -rupN a/numpy/core/src/npymath/ieee754.c.src b/numpy/core/src/npymath/ieee754.c.src
--- a/numpy/core/src/npymath/ieee754.c.src 2023-03-17 19:49:03.670527013 +0300
+++ b/numpy/core/src/npymath/ieee754.c.src 2023-03-17 19:49:46.420021619 +0300
@@ -387,6 +387,20 @@ int npy_get_floatstatus() {
#endif
+#if defined(__e2k__)
+
+int npy_get_floatstatus_barrier(char* param)
+{
+ return 0;
+}
+
+int npy_clear_floatstatus_barrier(char * param)
+{
+ return 0;
+}
+
+#else
+
int npy_get_floatstatus_barrier(char* param)
{
int fpstatus = fetestexcept(FE_DIVBYZERO | FE_OVERFLOW |
@@ -416,6 +430,7 @@ int npy_clear_floatstatus_barrier(char *
return fpstatus;
}
+#endif
void npy_set_floatstatus_divbyzero(void)
{