code: purgatorio

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