mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-16 21:34:10 +00:00
Shift the FPSR contents by the correct amount so feupdateenv() raises
the correct exceptions from the old environment.
This commit is contained in:
parent
0d2354c6fd
commit
16919a6cf7
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=130329
|
@ -44,6 +44,6 @@ feupdateenv(const fenv_t *envp)
|
|||
|
||||
__stfpsr(&fpsr);
|
||||
__ldfpsr(*envp);
|
||||
feraiseexcept(fpsr & FE_ALL_EXCEPT);
|
||||
feraiseexcept((fpsr >> _FPUSW_SHIFT) & FE_ALL_EXCEPT);
|
||||
return (0);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue