43 lines
1.8 KiB
Diff
43 lines
1.8 KiB
Diff
|
From ae217b0e77a52f08f46ef66fa88820946984507a Mon Sep 17 00:00:00 2001
|
||
|
From: Evgeniy Didin <Evgeniy.Didin@synopsys.com>
|
||
|
Date: Tue, 6 Feb 2018 15:59:22 +0300
|
||
|
Subject: [PATCH] FIX: no FPU exceptions bits on ARC glibc
|
||
|
|
||
|
The FPU exceptions bits are missing in fenv.h in glibc for ARC architecture.
|
||
|
|
||
|
Signed-off-by: Evgeniy Didin <Evgeniy.Didin@synopsys.com>
|
||
|
---
|
||
|
numpy/core/include/numpy/ufuncobject.h | 2 +-
|
||
|
numpy/core/src/npymath/ieee754.c.src | 2 +-
|
||
|
2 files changed, 2 insertions(+), 2 deletions(-)
|
||
|
|
||
|
diff --git a/numpy/core/include/numpy/ufuncobject.h b/numpy/core/include/numpy/ufuncobject.h
|
||
|
index 89f72fcea..29e05b179 100644
|
||
|
--- a/numpy/core/include/numpy/ufuncobject.h
|
||
|
+++ b/numpy/core/include/numpy/ufuncobject.h
|
||
|
@@ -319,7 +319,7 @@ typedef struct _loop1d_info {
|
||
|
#if defined(sun) || defined(__BSD__) || defined(__OpenBSD__) || \
|
||
|
(defined(__FreeBSD__) && (__FreeBSD_version < 502114)) || \
|
||
|
defined(__NetBSD__) || \
|
||
|
- (defined(__GLIBC__) && !defined(__UCLIBC__)) || defined(__APPLE__) || \
|
||
|
+ (defined(__GLIBC__) && !defined(__UCLIBC__) && !defined(__arc__)) || defined(__APPLE__) || \
|
||
|
defined(__CYGWIN__) || defined(__MINGW32__) || \
|
||
|
(defined(__FreeBSD__) && (__FreeBSD_version >= 502114)) || \
|
||
|
defined(_AIX) || \
|
||
|
diff --git a/numpy/core/src/npymath/ieee754.c.src b/numpy/core/src/npymath/ieee754.c.src
|
||
|
index 8dc4d77ef..78e646470 100644
|
||
|
--- a/numpy/core/src/npymath/ieee754.c.src
|
||
|
+++ b/numpy/core/src/npymath/ieee754.c.src
|
||
|
@@ -627,7 +627,7 @@ void npy_set_floatstatus_invalid(void)
|
||
|
}
|
||
|
|
||
|
|
||
|
-#elif (defined(__GLIBC__) && !defined(__UCLIBC__)) || defined(__APPLE__) || \
|
||
|
+#elif (defined(__GLIBC__) && !defined(__UCLIBC__) && !defined(__arc__)) || defined(__APPLE__) || \
|
||
|
defined(__CYGWIN__) || defined(__MINGW32__) || \
|
||
|
(defined(__FreeBSD__) && (__FreeBSD_version >= 502114))
|
||
|
# include <fenv.h>
|
||
|
--
|
||
|
2.16.2
|
||
|
|