Update.
* sysdeps/i386/fpu/feenablxcpt.c (feenableexcept): Reverse use of stmxcsr and ldmxcsr.
This commit is contained in:
parent
b72e048f19
commit
2775fdb512
@ -1,5 +1,8 @@
|
||||
2003-07-21 Ulrich Drepper <drepper@redhat.com>
|
||||
|
||||
* sysdeps/i386/fpu/feenablxcpt.c (feenableexcept): Reverse use of
|
||||
stmxcsr and ldmxcsr.
|
||||
|
||||
* Makerules (build-module-helper): Add -z defs unless explicitly said
|
||||
not to do it.
|
||||
* dlfcn/Makefile: Define various *-no-z-defs variables for test DSOs
|
||||
|
@ -44,11 +44,11 @@ feenableexcept (int excepts)
|
||||
unsigned int xnew_exc;
|
||||
|
||||
/* Get the current control word. */
|
||||
__asm__ ("ldmxcsr %0" : "=m" (*&xnew_exc));
|
||||
__asm__ ("stmxcsr %0" : "=m" (*&xnew_exc));
|
||||
|
||||
xnew_exc &= ~(excepts << 7);
|
||||
|
||||
__asm__ ("stmxcsr %0" : : "m" (*&xnew_exc));
|
||||
__asm__ ("ldmxcsr %0" : : "m" (*&xnew_exc));
|
||||
}
|
||||
|
||||
return old_exc;
|
||||
|
Loading…
x
Reference in New Issue
Block a user