code: purgatorio

ref: 51bcc63cc6bce3f9dab27cf6bd7155512b82c8fa
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);
}