aboutsummaryrefslogtreecommitdiff
path: root/src/lib9/nan.c
blob: 34feb153d7255119191862ffb9f94dce38f19d42 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#include <u.h>
#include <libc.h>
#include "fmt/nan.h"

double
NaN(void)
{
	return __NaN();
}

double
Inf(int sign)
{
	return __Inf(sign);
}

int
isNaN(double x)
{
	return __isNaN(x);
}

int
isInf(double x, int sign)
{
	return __isInf(x, sign);
}