Cleanup feclearexcept to use the same logic as the ARM version. No functional changes.

This commit is contained in:
Wilco Dijkstra 2014-10-24 13:01:38 +00:00
parent e226de3372
commit ea9a7c8b06
2 changed files with 6 additions and 1 deletions

View File

@ -115,6 +115,11 @@
(lchown): Likewise.
(fchown): Likewise.
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):

View 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);