summaryrefslogtreecommitdiff
path: root/src/math/hypot.c
blob: 60f6838466f4e22133a9aae3f1e5aabf20ccfc4c (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
27
#if 0

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

TYPE TGFN(hypot)(TYPE x, TYPE y)
{
	if (fpclassify(y) == FP_ZERO) {
		return fabs(x);
	}

	if (fpclassify(x) == FP_INFINITE) {
		return INFINITY;
	}

	return x - y;
}

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


#endif