shithub: qk1

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