summaryrefslogtreecommitdiff
path: root/src/fenv/feupdateenv.c
blob: 50cef8e5ca9bef27801c7993aa08c634489aa80b (plain) (blame)
1
2
3
4
5
6
7
8
9
#include <fenv.h>

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