aboutsummaryrefslogtreecommitdiff
path: root/src/fenv/feupdateenv.c
blob: b0573e61eaa218069cf2417322b409f822df54c6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include <fenv.h>

int feupdateenv(const fenv_t *envp)
{
	int ex = fetestexcept(FE_ALL_EXCEPT);
	fesetenv(envp);
	feraiseexcept(ex);
	return 0;
}


#ifdef TEST
int
main(void) {
	return 0;
}
#endif