]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Call libc_fetestexcept_aarch64 from math_private.h rather than duplicating functionality.
authorWilco Dijkstra <wdijkstr@arm.com>
Fri, 24 Oct 2014 13:23:12 +0000 (13:23 +0000)
committerWilco Dijkstra <wdijkstr@arm.com>
Fri, 24 Oct 2014 13:23:12 +0000 (13:23 +0000)
ChangeLog
sysdeps/aarch64/fpu/fgetexcptflg.c

index d8462acfecfeda8ec714f62db0922128aa3ef847..98548cbaf9fbde03722301c351c8fabde9171d87 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+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):
index d25da1cab94dd7cd651e7c3496ac08c0b46cdf29..ee19d6ed8479a3c83ee60811f517ec3f04716c40 100644 (file)
    <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;
 }