shithub: qk1

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