From 6a9ad2faee48c5a9befd5ad6af79df37e4ea5436 Mon Sep 17 00:00:00 2001 From: Wilco Dijkstra Date: Fri, 24 Oct 2014 13:23:12 +0000 Subject: [PATCH] Call libc_fetestexcept_aarch64 from math_private.h rather than duplicating functionality. --- ChangeLog | 5 +++++ sysdeps/aarch64/fpu/fgetexcptflg.c | 10 ++-------- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/ChangeLog b/ChangeLog index d8462acfec..98548cbaf9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2014-10-24 Wilco Dijkstra + * sysdeps/aarch64/fpu/fgetexcptflg.c (fegetexceptflag): + Call libc_fetestexcept_aarch64. + +2014-10-24 Wilco Dijkstra + * sysdeps/aarch64/fpu/feholdexcpt.c (feholdexcept): Call libc_feholdexcept_aarch64. 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 @@ . */ #include -#include +#include 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; } -- 2.11.4.GIT