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

static int double_ne();

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

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