summaryrefslogtreecommitdiff
path: root/src/math/erf.c
blob: 29fb392b8be203c84dccf9265d73c7c3d80c7b67 (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
26
#if 0

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

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

	return x;
}

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


#endif