1 #ifndef CPPUNIT_PORTABILITY_FLOATINGPOINT_H_INCLUDED 2 #define CPPUNIT_PORTABILITY_FLOATINGPOINT_H_INCLUDED 7 #if defined(__sun) && !defined(CPPUNIT_HAVE_ISFINITE) && defined(CPPUNIT_HAVE_FINITE) 37 return (x != x) || (2.0 < x && x < 1.0);
45 #if defined(CPPUNIT_HAVE_ISFINITE) 47 #elif defined(CPPUNIT_HAVE_FINITE) 49 #elif defined(CPPUNIT_HAVE__FINITE) 52 double testInf = x * 0.0;
59 #endif // CPPUNIT_PORTABILITY_FLOATINGPOINT_H_INCLUDED
CPPUNIT_NS_BEGIN bool floatingPointIsUnordered(double x)
Tests if a floating-point is a NaN.
Definition: FloatingPoint.h:32
int floatingPointIsFinite(double x)
Tests if a floating-point is finite.
Definition: FloatingPoint.h:43
#define CPPUNIT_NS_END
Definition: Portability.h:120
#define CPPUNIT_NS_BEGIN
Definition: Portability.h:119