diff options
Diffstat (limited to 'sysdeps/aarch64')
-rw-r--r-- | sysdeps/aarch64/fpu/fgetexcptflg.c | 10 |
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; } |