shithub: qk1

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