mirror of git://sourceware.org/git/glibc.git
Cleanup fesetexceptflag to use the same logic as the ARM version. No functional changes.
This commit is contained in:
parent
6e3d8ed360
commit
e226de3372
|
@ -115,6 +115,11 @@
|
||||||
(lchown): Likewise.
|
(lchown): Likewise.
|
||||||
(fchown): 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>
|
2014-10-23 Wilco Dijkstra <wdijkstr@arm.com>
|
||||||
|
|
||||||
* sysdeps/aarch64/fpu/fsetexcptflg.c (fsetexceptflag):
|
* sysdeps/aarch64/fpu/fsetexcptflg.c (fsetexceptflag):
|
||||||
|
|
|
@ -27,10 +27,11 @@ fesetexceptflag (const fexcept_t *flagp, int excepts)
|
||||||
|
|
||||||
/* Get the current environment. */
|
/* Get the current environment. */
|
||||||
_FPU_GETFPSR (fpsr);
|
_FPU_GETFPSR (fpsr);
|
||||||
|
excepts &= FE_ALL_EXCEPT;
|
||||||
|
|
||||||
/* Set the desired exception mask. */
|
/* Set the desired exception mask. */
|
||||||
fpsr_new = fpsr & ~(excepts & FE_ALL_EXCEPT);
|
fpsr_new = fpsr & ~excepts;
|
||||||
fpsr_new |= (*flagp & excepts & FE_ALL_EXCEPT);
|
fpsr_new |= *flagp & excepts;
|
||||||
|
|
||||||
/* Save state back to the FPU. */
|
/* Save state back to the FPU. */
|
||||||
if (fpsr != fpsr_new)
|
if (fpsr != fpsr_new)
|
||||||
|
|
Loading…
Reference in New Issue