int Port::isNan(double r) { #if __APPLE__ return __inline_isnan(r); #else return ::isnan(r); #endif }
int Port::isNan(long double r) { #if __APPLE__ return __inline_isnan(r); #elif __OpenBSD__ return isnan(r); #else #undef isnan return ::isnan(r); #endif }
int Port::isNan(double r) { #if __APPLE__ return __inline_isnan(r); #elif defined __HAIKU__ || __OpenBSD__ return isnan(r); #else #undef isnan return ::isnan(r); #endif }
int Port::isNan(longdouble r) { #if __APPLE__ #if __MAC_OS_X_VERSION_MAX_ALLOWED >= 1080 return __inline_isnanl(r); #else return __inline_isnan(r); #endif #elif __HAIKU__ || __OpenBSD__ return isnan(r); #else #undef isnan return ::isnan(r); #endif }
int __isnan( long double x ) { return __inline_isnan(x); }