summaryrefslogtreecommitdiff
path: root/src/math/isnan.c
blob: 2ae4b4d2ab080015edcfe8cb46916630e293acdd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#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)
*/