ref: c116550e6a41572796e4db65e4f6acbcb3d9d6f8 dir: /lib9/isnan-posix.c/
#include <lib9.h> int isNaN(double d) { return isnan(d); } int isInf(double d, int sign) { if(sign < 0) return isinf(d) < 0; return isinf(d); }