shithub: qk1

ref: 968ea5f2c3b96b5bd413534ed11789ef9026c47e
dir: /isnanf.c/

View raw version
#include <u.h>

int
isNaNf(float f)
{
	union {
		float f;
		u32int u;
	}x;

	x.f = f;
	return (x.u & (0xff<<23)) == (0xff<<23);
}