From b5570d92d6bb6ba9c25ac6ed77ba170dd7f4acd3 Mon Sep 17 00:00:00 2001 From: Wilco Date: Tue, 24 Jun 2014 15:02:51 +0000 Subject: Add _FPU_MASK_RM and use it instead of FE_TOWARDZERO. 2014-06-24 Wilco * sysdeps/arm/fpu_control.h (_FPU_MASK_RM): Define. * sysdeps/arm/fenv_private.h (libc_fesetround_vfp) (libc_feholdexcept_setround_vfp) (libc_feholdsetround_vfp) (libc_feresetround_vfp) (libc_feholdsetround_vfp_ctx) (libc_feresetround_vfp_ctx): Use _FPU_MASK_RM. * sysdeps/arm/fesetround.c (fesetround): Use _FPU_MASK_RM. * sysdeps/arm/get-rounding-mode.h (get_rounding_mode): Use _FPU_MASK_RM. --- sysdeps/arm/fesetround.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'sysdeps/arm/fesetround.c') diff --git a/sysdeps/arm/fesetround.c b/sysdeps/arm/fesetround.c index 2e21925137..530a6ba91f 100644 --- a/sysdeps/arm/fesetround.c +++ b/sysdeps/arm/fesetround.c @@ -28,8 +28,7 @@ fesetround (int round) if (!ARM_HAVE_VFP) return (round == FE_TONEAREST) ? 0 : 1; - /* Fail if the rounding mode is not valid. */ - if (round & ~FE_TOWARDZERO) + if (round & ~_FPU_MASK_RM) return 1; libc_fesetround_vfp (round); -- cgit v1.2.1