summaryrefslogtreecommitdiff
path: root/src/fenv/feraiseexcept.c
blob: 4640ecbf09620279f24349aa60fdcf5b7c972307 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#include <fenv.h>
#include "_fenv.h"

int feraiseexcept(int excepts)
{
	SIGNAL_SAFE(0);
	ASSERT_VALID_EXCEPTION_MASK(excepts);
	return excepts;
}

CHECK_1(int, 0, feraiseexcept, int)

/*
The feraiseexcept function raises the supported floating-point exceptions
represented by its argument. 178) The order in which these floating-point exceptions are
raised is unspecified, except as stated in F.7.6. Whether the feraiseexcept function
additionally raises the ‘‘inexact’’ floating-point exception whenever it raises the
‘‘overflow’’ or ‘‘underflow’’ floating-point exception is implementation-defined.
*/

/*
STDC(199901)
LINK(m)
*/