diff --git a/sysdeps/aarch64/fpu/ftestexcept.c b/sysdeps/aarch64/fpu/ftestexcept.c
index 73e01d4..74e2d0f 100644
--- a/sysdeps/aarch64/fpu/ftestexcept.c
+++ b/sysdeps/aarch64/fpu/ftestexcept.c
@@ -16,17 +16,11 @@
License along with the GNU C Library; if not, see
. */
-#include
-#include
+#include
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)