code: 9ferno

ref: eb81a50383aca3b30ce3687f5daf7a86c68abae2
dir: /lib9/isnan-posix.c/

View raw version
#include <lib9.h>

int
isNaN(double d)
{
	return isnan(d);
}

int
isInf(double d, int sign)
{
	if(sign < 0)
		return isinf(d) < 0;
	return isinf(d);
}