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
10 lines
146 B
C
10 lines
146 B
C
#include <fenv.h>
|
|
|
|
int feupdateenv(const fenv_t *envp)
|
|
{
|
|
int ex = fetestexcept(FE_ALL_EXCEPT);
|
|
fesetenv(envp);
|
|
feraiseexcept(ex);
|
|
return 0;
|
|
}
|