12 namespace GenVector_detail {
27 for (
int k=0; k<6; k++) {
40 static const int kUNSET = -1;
73 "Cannot determine byte-ordering of doubles on this system");
77 "Confusion in byte-ordering of doubles on this system");
90 std::ostringstream
ss;
91 for (
int i=0; i<8; ++i) {
93 ss <<
std::hex << std::setw(2) << std::setfill(
'0') << (int)db.
fB[k];
116 unsigned char bytes[8];
118 bytes[0] =
static_cast<unsigned char>((i >> 24) & 0xFF);
119 bytes[1] =
static_cast<unsigned char>((i >> 16) & 0xFF);
120 bytes[2] =
static_cast<unsigned char>((i >> 8) & 0xFF);
121 bytes[3] =
static_cast<unsigned char>((i ) & 0xFF);
122 bytes[4] =
static_cast<unsigned char>((j >> 24) & 0xFF);
123 bytes[5] =
static_cast<unsigned char>((j >> 16) & 0xFF);
124 bytes[6] =
static_cast<unsigned char>((j >> 8) & 0xFF);
125 bytes[7] =
static_cast<unsigned char>((j ) & 0xFF);
126 for (
int k=0; k<8; ++k) {
static int fgByte_order[8]
static double Longs2double(unsigned int i1, unsigned int i2)
static void Fill_byte_order()
static void Dto2longs(double d, unsigned int &i1, unsigned int &i2)
static std::string D2x(double d)
static bool fgByte_order_known