about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--sysdeps/aarch64/fpu/ftestexcept.c9
2 files changed, 7 insertions, 7 deletions
diff --git a/ChangeLog b/ChangeLog
index a026ad17f7..cb161433cb 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2014-12-22  Wilco Dijkstra  <wdijkstr@arm.com>
 
+	* sysdeps/aarch64/fpu/ftestexcept.c (fetestexcept):
+	Call libc_fetestexcept_aarch64.
+
+2014-12-22  Wilco Dijkstra  <wdijkstr@arm.com>
+
 	* sysdeps/aarch64/fpu/fesetround.c (fesetround):
 	Call libc_fesetround_aarch64.
 
diff --git a/sysdeps/aarch64/fpu/ftestexcept.c b/sysdeps/aarch64/fpu/ftestexcept.c
index 73e01d4388..05787b10e4 100644
--- a/sysdeps/aarch64/fpu/ftestexcept.c
+++ b/sysdeps/aarch64/fpu/ftestexcept.c
@@ -17,16 +17,11 @@
    <http://www.gnu.org/licenses/>.  */
 
 #include <fenv.h>
-#include <fpu_control.h>
+#include <math_private.h>
 
 int
 fetestexcept (int excepts)
 {
-  fpu_fpsr_t fpsr;
-
-  /* Get current exceptions.  */
-  _FPU_GETFPSR (fpsr);
-
-  return fpsr & excepts & FE_ALL_EXCEPT;
+  return libc_fetestexcept_aarch64 (excepts);
 }
 libm_hidden_def (fetestexcept)