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):
Remove unused include.
2014-10-23 Wilco Dijkstra <wdijkstr@arm.com>
/* 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)