shithub: qk1

ref: 5d11846259f00c662e468585b66e62741c7998b8
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);
}