summaryrefslogtreecommitdiff
path: root/src/math/expm1.c
blob: 0fdee6fed03d33195b3a6e03adc858c16284058b (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
25
#if 0

# define TGSOURCE "expm1.c"
#include "_tgmath.h"
#include <math.h>

TYPE TGFN(expm1)(TYPE x)
{
	switch (fpclassify(x)) {
	case FP_ZERO:		return x;
	case FP_INFINITE:	return signbit(x) ? -1.0 : x;
	default:		break;
	}

	return x;
}

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


#endif