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