ref: 8a4ebe3fc930049a7ad7699443a44412d7a16a6a dir: /isnanf.c/
#include <u.h> int isnanf(float f) { union { float f; u32int u; }x; x.f = f; return (x.u & (0xff<<23)) == (0xff<<23); }