summaryrefslogtreecommitdiffstats
path: root/missing/isnan.c
blob: a8733978add8b3b1797e56eccae8221b7fde2767 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* public domain rewrite of isnan(3) */

static int double_ne(double n1, double n2);

int
isnan(double n)
{
    return double_ne(n, n);
}

static int
double_ne(double n1, double n2)
{
    return n1 != n2;
}