30#ifndef _ODA_COMMON_INCLUDED_
31#error "Each cpp module MUST include OdaCommon.h as first header included"
516#define SETBIT(flags, bit, value) ((value) ? (flags |= (bit)) : (flags &= ~(bit)))
517#define GETBIT(flags, bit) (((flags) & (bit)) ? true : false)
519#define SETBIT_0(flags, bit) (flags &= ~(bit))
520#define SETBIT_1(flags, bit) (flags |= (bit))
569 return (
x < 0.0 ? -1.0 : (
x > 0.0 ? 1.0 : 0.0));
574 return (
x < 0 ? -1 : (
x > 0 ? 1 : 0));
598 static const int maxBinExp = 997;
600 double dMantissa = frexp(a, &nExpA);
601 dMantissa = frexp(b, &nExpB);
603 if ((nExpA - nExpB) < maxBinExp)
607 bool bNeg = (a < 0.);
611 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)
typedef void(APIENTRYP PFNGLACTIVETEXTUREPROC)(GLenum texture)
@ kPlotStyleNameIsDictDefault
@ kMReleaseFirstValid1500
@ kEnglish
English system.