diff options
author | Wilco Dijkstra <wdijkstr@arm.com> | 2014-10-24 13:01:38 +0000 |
---|---|---|
committer | Wilco Dijkstra <wdijkstr@arm.com> | 2014-10-24 13:03:11 +0000 |
commit | ea9a7c8b066accc408402fc00c946db7d8eb9764 (patch) | |
tree | 4339339854b4d7fb6fc269cfe414497ed911e506 | |
parent | e226de337216d54c1aa3b90c4b960a72a223eba6 (diff) | |
download | glibc-ea9a7c8b066accc408402fc00c946db7d8eb9764.tar.gz glibc-ea9a7c8b066accc408402fc00c946db7d8eb9764.tar.xz glibc-ea9a7c8b066accc408402fc00c946db7d8eb9764.zip |
Cleanup feclearexcept to use the same logic as the ARM version. No functional changes.
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | sysdeps/aarch64/fpu/fclrexcpt.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog index bcf4636b0f..fa7bcf32ef 100644 --- a/ChangeLog +++ b/ChangeLog @@ -117,6 +117,11 @@ 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): Cleanup logic. diff --git a/sysdeps/aarch64/fpu/fclrexcpt.c b/sysdeps/aarch64/fpu/fclrexcpt.c index b24f0ffbbc..4471373237 100644 --- a/sysdeps/aarch64/fpu/fclrexcpt.c +++ b/sysdeps/aarch64/fpu/fclrexcpt.c @@ -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); |