diff options
author | Ulrich Drepper <drepper@redhat.com> | 2000-08-17 18:43:01 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2000-08-17 18:43:01 +0000 |
commit | 522554b15962927f372e4bf60e72ea7e0ae0b71f (patch) | |
tree | 7ce3cba2bab67b8486b8948140f764a0aaaf2dcf /sysdeps/i386/fpu/feenablxcpt.c | |
parent | 3a93e252185f933d7e9faceeec1eb5de79b9466f (diff) | |
download | glibc-522554b15962927f372e4bf60e72ea7e0ae0b71f.tar.gz glibc-522554b15962927f372e4bf60e72ea7e0ae0b71f.tar.xz glibc-522554b15962927f372e4bf60e72ea7e0ae0b71f.zip |
Return currently enabled, not disabled exceptions.
Diffstat (limited to 'sysdeps/i386/fpu/feenablxcpt.c')
-rw-r--r-- | sysdeps/i386/fpu/feenablxcpt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/i386/fpu/feenablxcpt.c b/sysdeps/i386/fpu/feenablxcpt.c index f284306c4e..303e429884 100644 --- a/sysdeps/i386/fpu/feenablxcpt.c +++ b/sysdeps/i386/fpu/feenablxcpt.c @@ -29,7 +29,7 @@ feenableexcept (int excepts) __asm__ ("fstcw %0" : "=m" (*&new_exc)); excepts &= FE_ALL_EXCEPT; - old_exc = new_exc & FE_ALL_EXCEPT; + old_exc = (~new_exc) & FE_ALL_EXCEPT; new_exc &= ~excepts; __asm__ ("fldcw %0" : : "m" (*&new_exc)); |