about summary refs log tree commit diff
path: root/sysdeps/aarch64
diff options
context:
space:
mode:
authorWilco Dijkstra <wdijkstr@arm.com>2014-10-24 13:01:38 +0000
committerWilco Dijkstra <wdijkstr@arm.com>2014-10-24 13:03:11 +0000
commitea9a7c8b066accc408402fc00c946db7d8eb9764 (patch)
tree4339339854b4d7fb6fc269cfe414497ed911e506 /sysdeps/aarch64
parente226de337216d54c1aa3b90c4b960a72a223eba6 (diff)
downloadglibc-ea9a7c8b066accc408402fc00c946db7d8eb9764.tar.gz
glibc-ea9a7c8b066accc408402fc00c946db7d8eb9764.tar.xz
glibc-ea9a7c8b066accc408402fc00c946db7d8eb9764.zip
Cleanup feclearexcept to use the same logic as the ARM version. No functional changes.
Diffstat (limited to 'sysdeps/aarch64')
-rw-r--r--sysdeps/aarch64/fpu/fclrexcpt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/aarch64/fpu/fclrexcpt.c b/sysdeps/aarch64/fpu/fclrexcpt.c
index b24f0ffbbc..4471373237 100644
--- a/sysdeps/aarch64/fpu/fclrexcpt.c
+++ b/sysdeps/aarch64/fpu/fclrexcpt.c
@@ -28,7 +28,7 @@ feclearexcept (int excepts)
   excepts &= FE_ALL_EXCEPT;
 
   _FPU_GETFPSR (fpsr);
-  fpsr_new = (fpsr & ~FE_ALL_EXCEPT) | (fpsr & FE_ALL_EXCEPT & ~excepts);
+  fpsr_new = fpsr & ~excepts;
 
   if (fpsr != fpsr_new)
     _FPU_SETFPSR (fpsr_new);