Cleanup feclearexcept to use the same logic as the ARM version. No functional changes.
authorWilco Dijkstra <wdijkstr@arm.com>
Fri, 24 Oct 2014 13:01:38 +0000 (13:01 +0000)
committerWilco Dijkstra <wdijkstr@arm.com>
Fri, 24 Oct 2014 13:03:11 +0000 (13:03 +0000)
ChangeLog
sysdeps/aarch64/fpu/fclrexcpt.c

index bcf4636..fa7bcf3 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
 
 2014-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
 
+       * sysdeps/aarch64/fpu/fclrexcpt.c (feclearexcept):
+       Simplify logic.
+
+2014-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
+
        * sysdeps/aarch64/fpu/fsetexcptflg.c (fsetexceptflag):
        Cleanup logic.
 
index b24f0ff..4471373 100644 (file)
@@ -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);