CFx SDK Documentation
2020SP3
|
Go to the documentation of this file.
30 #ifndef _ODA_COMMON_INCLUDED_
31 #error "Each cpp module MUST include OdaCommon.h as first header included"
497 #define SETBIT(flags, bit, value) ((value) ? (flags |= (bit)) : (flags &= ~(bit)))
498 #define GETBIT(flags, bit) (((flags) & (bit)) ? true : false)
500 #define SETBIT_0(flags, bit) (flags &= ~(bit))
501 #define SETBIT_1(flags, bit) (flags |= (bit))
550 return (
x < 0.0 ? -1.0 : (
x > 0.0 ? 1.0 : 0.0));
555 return (
x < 0 ? -1 : (
x > 0 ? 1 : 0));
579 static const int maxBinExp = 997;
585 if ((nExpA - nExpB) < maxBinExp)
589 bool bNeg = (a < 0.);
593 return bNeg ? -1.e+300 : 1.e+300;
bool OdEqual(double x, double y, double tol=1.e-10)
bool OdGreaterOrEqual(double x, double y, double tol=1.e-10)
@ kEnglish
English system.
double safeDivide(double a, double b)
int OdCmpDouble(double x, double y, double tol=1.e-10)
bool OdLess(double x, double y, double tol=1.e-10)
@ kPlotStyleNameIsDictDefault
@ kMReleaseFirstValid1500
bool OdNegative(double x, double tol=1.e-10)
bool OdPositive(double x, double tol=1.e-10)
bool OdLessOrEqual(double x, double y, double tol=1.e-10)
bool OdGreater(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)