29 #define STL_USING_LIMITS
37 template<
class RealType>
47 unsigned char buf[
sizeof(RealType)];
50 nanType nanGenerator = { 0 };
53 nanGenerator.buf[0] = 0x7F;
54 nanGenerator.buf[1] = 0xF0;
55 nanGenerator.buf[
sizeof(RealType) - 1] = 0x1;
57 nanGenerator.buf[
sizeof(RealType) - 1] = 0x7F;
58 nanGenerator.buf[
sizeof(RealType) - 2] = 0xF0;
59 nanGenerator.buf[0] = 0x1;
62 return nanGenerator.nan;
66 static const double OdNan = nan(
"");
67 static const float OdNanf = nanf(
"");
69 static const double OdNan = nanIEEERealCreate<double>();
70 static const float OdNanf = nanIEEERealCreate<float>();
75 static const char OdStringUnset[] =
"\xff";
76 static const size_t OdStringUnsetLength = strlen(OdStringUnset);
78 static const OdAnsiString AnsiStringUnset(OdBcf::Consts::OdStringUnset);
const T & max(const T &x, const T &y)
RealType nanIEEERealCreate()