about summary refs log tree commit diff
path: root/sysdeps/arm/fesetround.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/arm/fesetround.c')
-rw-r--r--sysdeps/arm/fesetround.c3
1 files changed, 1 insertions, 2 deletions
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);