Lines Matching refs:isinf
1 //===-- IsInf.cpp - Platform-independent wrapper around C99 isinf() -------===//
10 // Platform-independent wrapper around C99 isinf()
22 using std::isinf;
27 static int isinf(double x) { return !finite(x) && x==x; }
30 #define isinf(X) (!_finite(X))
32 // GCC's fixincludes seems to be removing the isinf() declaration from the
35 static int isinf(double x) { return !finite(x) && x==x; }
39 static int isinf(double x) { return ((x) == INFINITY) || ((x) == -INFINITY); }
41 # error "Don't know how to get isinf()"
46 int IsInf(float f) { return isinf(f); }
47 int IsInf(double d) { return isinf(d); }