aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--sysdeps/aarch64/fpu/fgetexcptflg.c10
2 files changed, 7 insertions, 8 deletions
diff --git a/ChangeLog b/ChangeLog
index d8462ac..98548cb 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
2014-10-24 Wilco Dijkstra <wdijkstr@arm.com>
+ * sysdeps/aarch64/fpu/fgetexcptflg.c (fegetexceptflag):
+ Call libc_fetestexcept_aarch64.
+
+2014-10-24 Wilco Dijkstra <wdijkstr@arm.com>
+
* sysdeps/aarch64/fpu/feholdexcpt.c (feholdexcept):
Call libc_feholdexcept_aarch64.
diff --git a/sysdeps/aarch64/fpu/fgetexcptflg.c b/sysdeps/aarch64/fpu/fgetexcptflg.c
index d25da1ca..ee19d6e 100644
--- a/sysdeps/aarch64/fpu/fgetexcptflg.c
+++ b/sysdeps/aarch64/fpu/fgetexcptflg.c
@@ -17,17 +17,11 @@
<http://www.gnu.org/licenses/>. */
#include <fenv.h>
-#include <fpu_control.h>
+#include <math_private.h>
int
fegetexceptflag (fexcept_t *flagp, int excepts)
{
- fpu_fpsr_t fpsr;
-
- /* Get the current exceptions. */
- _FPU_GETFPSR (fpsr);
-
- *flagp = fpsr & excepts & FE_ALL_EXCEPT;
-
+ *flagp = libc_fetestexcept_aarch64 (excepts);
return 0;
}