1 #include <fenv.h>
2 
feupdateenv(const fenv_t * envp)3 int feupdateenv(const fenv_t* envp) {
4     int ex = fetestexcept(FE_ALL_EXCEPT);
5     fesetenv(envp);
6     feraiseexcept(ex);
7     return 0;
8 }
9