]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Cleanup fesetexceptflag to use the same logic as the ARM version. No functional changes.
authorWilco Dijkstra <wdijkstr@arm.com>
Fri, 24 Oct 2014 12:59:44 +0000 (12:59 +0000)
committerWilco Dijkstra <wdijkstr@arm.com>
Fri, 24 Oct 2014 13:03:09 +0000 (13:03 +0000)
ChangeLog
sysdeps/aarch64/fpu/fsetexcptflg.c

index 87fbfd86e56e2074b9b07ebd5117d0ade686fd5b..bcf4636b0f97f0e8193515746889232c519af574 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
        (lchown): Likewise.
        (fchown): Likewise.
 
+2014-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
+
+       * sysdeps/aarch64/fpu/fsetexcptflg.c (fsetexceptflag):
+       Cleanup logic.
+
 2014-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
 
        * sysdeps/aarch64/fpu/fsetexcptflg.c (fsetexceptflag):
index 316fbd68b7ffe50c0a58d90ea628b5809f58a08a..77e6cae9ed3bf4d4519f5d50e43a84a4a8d4f063 100644 (file)
@@ -27,10 +27,11 @@ fesetexceptflag (const fexcept_t *flagp, int excepts)
 
   /* Get the current environment.  */
   _FPU_GETFPSR (fpsr);
+  excepts &= FE_ALL_EXCEPT;
 
   /* Set the desired exception mask.  */
-  fpsr_new = fpsr & ~(excepts & FE_ALL_EXCEPT);
-  fpsr_new |= (*flagp & excepts & FE_ALL_EXCEPT);
+  fpsr_new = fpsr & ~excepts;
+  fpsr_new |= *flagp & excepts;
 
   /* Save state back to the FPU.  */
   if (fpsr != fpsr_new)