summaryrefslogtreecommitdiff
path: root/src/math/fpclassify.c
blob: a12432a28517bc5308e045a76b5c092a06db299c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#include <math.h>
                              int __fpclassifyf(float x);
                             int __fpclassifyd(double x);
                        int __fpclassifyl(long double x);

#define fpclassify(x)    ((sizeof (x) == sizeof (float)) ? __fpclassifyf(x) : \
	(sizeof (x) == sizeof (double)) ? __fpclassifyd(x) :  __fpclassifyl(x))

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