30 #ifndef _ODA_COMMON_INCLUDED_
31 #error "Each cpp module MUST include OdaCommon.h as first header included"
499 #define SETBIT(flags, bit, value) ((value) ? (flags |= (bit)) : (flags &= ~(bit)))
500 #define GETBIT(flags, bit) (((flags) & (bit)) ? true : false)
502 #define SETBIT_0(flags, bit) (flags &= ~(bit))
503 #define SETBIT_1(flags, bit) (flags |= (bit))
552 return (
x < 0.0 ? -1.0 : (
x > 0.0 ? 1.0 : 0.0));
557 return (
x < 0 ? -1 : (
x > 0 ? 1 : 0));
581 static const int maxBinExp = 997;
587 if ((nExpA - nExpB) < maxBinExp)
591 bool bNeg = (a < 0.);
595 return bNeg ? -1.e+300 : 1.e+300;
bool OdEqual(double x, double y, double tol=1.e-10)
bool OdZero(double x, double tol=1.e-10)
bool OdNonZero(double x, double tol=1.e-10)
bool OdLessOrEqual(double x, double y, double tol=1.e-10)
int OdCmpDouble(double x, double y, double tol=1.e-10)
double safeDivide(double a, double b)
bool OdNegative(double x, double tol=1.e-10)
bool OdLess(double x, double y, double tol=1.e-10)
bool OdGreater(double x, double y, double tol=1.e-10)
bool OdPositive(double x, double tol=1.e-10)
bool OdGreaterOrEqual(double x, double y, double tol=1.e-10)
@ kPlotStyleNameIsDictDefault
@ kMReleaseFirstValid1500
@ kEnglish
English system.