shithub: qk1

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