summaryrefslogtreecommitdiff
path: root/src/math/isnan.c
blob: 472bc4b8f8f0b68ebf1ecbb1436bb6314ce6becb (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
*/