From c0c08d02c82275353f5c556f935a1a01714d9d7f Mon Sep 17 00:00:00 2001 From: Wilco Date: Thu, 15 May 2014 15:21:55 +0100 Subject: ARM: Improve fenv implementation --- sysdeps/arm/fgetexcptflg.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'sysdeps/arm/fgetexcptflg.c') diff --git a/sysdeps/arm/fgetexcptflg.c b/sysdeps/arm/fgetexcptflg.c index 63fdfbf747..994555ca19 100644 --- a/sysdeps/arm/fgetexcptflg.c +++ b/sysdeps/arm/fgetexcptflg.c @@ -17,22 +17,17 @@ License along with the GNU C Library. If not, see . */ -#include -#include +#include #include int fegetexceptflag (fexcept_t *flagp, int excepts) { - fpu_control_t fpscr; - /* Fail if a VFP unit isn't present. */ if (!ARM_HAVE_VFP) return 1; - _FPU_GETCW (fpscr); - - *flagp = fpscr & excepts & FE_ALL_EXCEPT; + *flagp = libc_fetestexcept_vfp (excepts); return 0; } -- cgit 1.4.1