33 lines
736 B
Diff
33 lines
736 B
Diff
|
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)
|
||
|
{
|