aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/aarch64
diff options
context:
space:
mode:
authorWilco Dijkstra <wdijkstr@arm.com>2014-10-24 12:59:44 +0000
committerWilco Dijkstra <wdijkstr@arm.com>2014-10-24 13:03:09 +0000
commite226de337216d54c1aa3b90c4b960a72a223eba6 (patch)
tree29adc8c640fe408c519c315d3f29c52a50f2c212 /sysdeps/aarch64
parent6e3d8ed3605e845274e29aa3b62a1dfb7f420353 (diff)
downloadglibc-e226de337216d54c1aa3b90c4b960a72a223eba6.zip
glibc-e226de337216d54c1aa3b90c4b960a72a223eba6.tar.gz
glibc-e226de337216d54c1aa3b90c4b960a72a223eba6.tar.bz2
Cleanup fesetexceptflag to use the same logic as the ARM version. No functional changes.
Diffstat (limited to 'sysdeps/aarch64')
-rw-r--r--sysdeps/aarch64/fpu/fsetexcptflg.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sysdeps/aarch64/fpu/fsetexcptflg.c b/sysdeps/aarch64/fpu/fsetexcptflg.c
index 316fbd6..77e6cae 100644
--- a/sysdeps/aarch64/fpu/fsetexcptflg.c
+++ b/sysdeps/aarch64/fpu/fsetexcptflg.c
@@ -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)