Insert a missing '~' in feholdexcept(), so that it correctly clears
the exception flags in the mxcsr as well as the x87 FPU.
This commit is contained in:
parent
b4adfcf2f4
commit
0d2354c6fd
@ -94,7 +94,7 @@ feholdexcept(fenv_t *envp)
|
||||
__fnstenv(&envp->__x87);
|
||||
__fnclex();
|
||||
envp->__mxcsr = mxcsr;
|
||||
mxcsr &= FE_ALL_EXCEPT;
|
||||
mxcsr &= ~FE_ALL_EXCEPT;
|
||||
mxcsr |= FE_ALL_EXCEPT << _SSE_EMASK_SHIFT;
|
||||
__ldmxcsr(mxcsr);
|
||||
return (0);
|
||||
|
Loading…
x
Reference in New Issue
Block a user