1 #define _GNU_SOURCE 2 #include <math.h> 3 finite(double x)4 int finite(double x) 5 { 6 return isfinite(x); 7 } 8