mirror of git://sourceware.org/git/glibc.git
Cleanup feclearexcept to use the same logic as the ARM version. No functional changes.
This commit is contained in:
parent
e226de3372
commit
ea9a7c8b06
|
@ -115,6 +115,11 @@
|
||||||
(lchown): Likewise.
|
(lchown): Likewise.
|
||||||
(fchown): 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>
|
2014-10-23 Wilco Dijkstra <wdijkstr@arm.com>
|
||||||
|
|
||||||
* sysdeps/aarch64/fpu/fsetexcptflg.c (fsetexceptflag):
|
* sysdeps/aarch64/fpu/fsetexcptflg.c (fsetexceptflag):
|
||||||
|
|
|
@ -28,7 +28,7 @@ feclearexcept (int excepts)
|
||||||
excepts &= FE_ALL_EXCEPT;
|
excepts &= FE_ALL_EXCEPT;
|
||||||
|
|
||||||
_FPU_GETFPSR (fpsr);
|
_FPU_GETFPSR (fpsr);
|
||||||
fpsr_new = (fpsr & ~FE_ALL_EXCEPT) | (fpsr & FE_ALL_EXCEPT & ~excepts);
|
fpsr_new = fpsr & ~excepts;
|
||||||
|
|
||||||
if (fpsr != fpsr_new)
|
if (fpsr != fpsr_new)
|
||||||
_FPU_SETFPSR (fpsr_new);
|
_FPU_SETFPSR (fpsr_new);
|
||||||
|
|
Loading…
Reference in New Issue