code: 9ferno

ref: 0ee70192a6748cb9adf572ac584ca7dd417cf1ef
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);
}