aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/aarch64
diff options
context:
space:
mode:
authorWilco Dijkstra <wdijkstr@arm.com>2014-10-24 13:23:12 +0000
committerWilco Dijkstra <wdijkstr@arm.com>2014-10-24 13:23:12 +0000
commit6a9ad2faee48c5a9befd5ad6af79df37e4ea5436 (patch)
treec509b0a98c1f8090e7b4a286b1b9af2469226da7 /sysdeps/aarch64
parent1c8810ed95b3ef09c5a8a2bd03f26e3452974c06 (diff)
downloadglibc-6a9ad2faee48c5a9befd5ad6af79df37e4ea5436.tar
glibc-6a9ad2faee48c5a9befd5ad6af79df37e4ea5436.tar.gz
glibc-6a9ad2faee48c5a9befd5ad6af79df37e4ea5436.tar.bz2
glibc-6a9ad2faee48c5a9befd5ad6af79df37e4ea5436.zip
Call libc_fetestexcept_aarch64 from math_private.h rather than duplicating functionality.
Diffstat (limited to 'sysdeps/aarch64')
-rw-r--r--sysdeps/aarch64/fpu/fgetexcptflg.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/sysdeps/aarch64/fpu/fgetexcptflg.c b/sysdeps/aarch64/fpu/fgetexcptflg.c
index d25da1cab9..ee19d6ed84 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;
}