shithub: qk1

ref: 4605c9a98242a9d3e8e5f54f30b1cf27fc0ccba1
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);
}