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:
David Schultz 2004-06-11 02:35:19 +00:00
parent b4adfcf2f4
commit 0d2354c6fd
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=130328

View File

@ -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);