mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04:00
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
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Reference in a new issue