shithub: qk1

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