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

int fesetexceptflag(const fexcept_t *fp, int mask)
{
	feclearexcept(~*fp & mask);
	feraiseexcept(*fp & mask);
	return 0;
}


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