/* 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;
__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));
/* Get enabled floating-point exceptions.
- Copyright (C) 1999 Free Software Foundation, Inc.
+ Copyright (C) 1999, 2000 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Andreas Jaeger <aj@suse.de>, 1999.
/* Get the current control word. */
__asm__ ("fstcw %0" : "=m" (*&exc));
- return exc & FE_ALL_EXCEPT;
+ return (~exc) & FE_ALL_EXCEPT;
}