about summary refs log tree commit diff
path: root/sysdeps/i386/fpu/fedisblxcpt.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2000-08-17 18:43:01 +0000
committerUlrich Drepper <drepper@redhat.com>2000-08-17 18:43:01 +0000
commit522554b15962927f372e4bf60e72ea7e0ae0b71f (patch)
tree7ce3cba2bab67b8486b8948140f764a0aaaf2dcf /sysdeps/i386/fpu/fedisblxcpt.c
parent3a93e252185f933d7e9faceeec1eb5de79b9466f (diff)
downloadglibc-522554b15962927f372e4bf60e72ea7e0ae0b71f.tar.gz
glibc-522554b15962927f372e4bf60e72ea7e0ae0b71f.tar.xz
glibc-522554b15962927f372e4bf60e72ea7e0ae0b71f.zip
Return currently enabled, not disabled exceptions.
Diffstat (limited to 'sysdeps/i386/fpu/fedisblxcpt.c')
-rw-r--r--sysdeps/i386/fpu/fedisblxcpt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/i386/fpu/fedisblxcpt.c b/sysdeps/i386/fpu/fedisblxcpt.c
index 019366e1c8..00c04cba05 100644
--- a/sysdeps/i386/fpu/fedisblxcpt.c
+++ b/sysdeps/i386/fpu/fedisblxcpt.c
@@ -28,7 +28,7 @@ fedisableexcept (int excepts)
   /* Get the current control word.  */
   __asm__ ("fstcw %0" : "=m" (*&new_exc));
 
-  old_exc = new_exc & FE_ALL_EXCEPT;
+  old_exc = (~new_exc) & FE_ALL_EXCEPT;
 
   excepts &= FE_ALL_EXCEPT;