shithub: qk1

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