aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/alpha/fpu/fsetexcptflg.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/alpha/fpu/fsetexcptflg.c')
-rw-r--r--sysdeps/alpha/fpu/fsetexcptflg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/alpha/fpu/fsetexcptflg.c b/sysdeps/alpha/fpu/fsetexcptflg.c
index 70f3666..63eb068 100644
--- a/sysdeps/alpha/fpu/fsetexcptflg.c
+++ b/sysdeps/alpha/fpu/fsetexcptflg.c
@@ -27,7 +27,7 @@ __fesetexceptflag (const fexcept_t *flagp, int excepts)
tmp = __ieee_get_fp_control ();
/* Set all the bits that were called for. */
- tmp = (tmp & ~SWCR_STATUS_MASK) | (*flagp & excepts & SWCR_STATUS_MASK);
+ tmp ^= (tmp ^ *flagp) & excepts & SWCR_STATUS_MASK;
/* And store it back. */
__ieee_set_fp_control (tmp);