#define isfinite(x) (sizeof(x) == sizeof(float) ? __float32_isfinite(x) : __float64_isfinite(x))
isfinite determines whether x is a finite value (zero, subnormal, or normal, and not infinite or NaN). isfinite returns a non-zero value if and only if x has a finite value.