29#define STL_USING_LIMITS
48 template<
class RealType>
58 unsigned char buf[
sizeof(RealType)];
61 nanType nanGenerator = { 0 };
64 nanGenerator.buf[0] = 0x7F;
65 nanGenerator.buf[1] = 0xF0;
66 nanGenerator.buf[
sizeof(RealType) - 1] = 0x1;
68 nanGenerator.buf[
sizeof(RealType) - 1] = 0x7F;
69 nanGenerator.buf[
sizeof(RealType) - 2] = 0xF0;
70 nanGenerator.buf[0] = 0x1;
73 return nanGenerator.nan;
80 static const double OdNan = nan(
"");
85 static const float OdNanf = nanf(
"");
90 static const double OdNan = nanIEEERealCreate<double>();
95 static const float OdNanf = nanIEEERealCreate<float>();
101 static const long OdLongUnset = std::numeric_limits<long>::max();
106 static const int OdIntUnset = std::numeric_limits<int>::max();
111 static const char OdStringUnset[] =
"\xff";
116 static const size_t OdStringUnsetLength = strlen(OdStringUnset);
121 static const OdAnsiString AnsiStringUnset(OdBcf::Consts::OdStringUnset);
RealType nanIEEERealCreate()