mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-17 15:27:36 +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 New Issue
Block a user