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

int feupdateenv(const fenv_t *envp)
{
	#pragma STDC FENV_ACCESS ON
	int ex = fetestexcept(FE_ALL_EXCEPT);
	fesetenv(envp);
	feraiseexcept(ex);
	return 0;
}