fix fenv exception functions to mask their argument
fesetround.c is a wrapper to do the arch independent argument check (on archs where rounding mode is not stored in 2 bits __fesetround still has to check its arguments) on powerpc fe*except functions do not accept the extra invalid flags of its fpscr register the useless FENV_ACCESS pragma was removed from feupdateenv
This commit is contained in:
1 parent
d8764bf840
commit
a6b0170a7f
8 files changed
+55
-18
No files matched your search
@@ -2,7 +2,6 @@
|
||||
|
||||
int feupdateenv(const fenv_t *envp)
|
||||
{
|
||||
#pragma STDC FENV_ACCESS ON
|
||||
int ex = fetestexcept(FE_ALL_EXCEPT);
|
||||
fesetenv(envp);
|
||||
feraiseexcept(ex);
|
||||
|
||||
Reference in new issue
Block a user