summaryrefslogtreecommitdiff
path: root/src/math/isnan.c
blob: 963b70210ceef54623e70635d006832e21367db7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#include <math.h>
                             int __isnanf(float x);
                            int __isnand(double x);
                       int __isnanl(long double x);

#define isnan(x)              ((sizeof (x) == sizeof (float)) ? __isnanf(x) : \
	(sizeof (x) == sizeof (double)) ? __isnand(x) : __isnanl(x))

/*
STDC(199901)
LINK(m)
see also SUSv1
*/