shithub: qk1

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