12 #ifdef DtUSE_UTILITIES_NAMESPACE
13 namespace DtUSE_UTILITIES_NAMESPACE
19 #define is_bigendian() ( (*(char*)&endianChecker) == 0 )
25 for(
int i = 0; i < ( theSize >> 1 ); ++i )
27 theEnd = ( theSize - 1 ) - i;
28 byteArray[ i ] ^= byteArray[ theEnd ];
29 byteArray[ theEnd ] ^= byteArray[ i ];
30 byteArray[ i ] ^= byteArray[ theEnd ];
37 unsigned short msbyte = rhs & 0x00ff;
38 unsigned short lsbyte = ( rhs & 0xff00 ) >> 8;
39 return ( msbyte << 8 ) | lsbyte;
47 return ( msword << 16 ) | lsword;
54 unsigned int mspart =
endianSwap32Bit( static_cast<unsigned int>(rhs & 0xffffffff) );
55 unsigned int lspart =
endianSwap32Bit(static_cast<unsigned int>(( rhs >> 32 ) & 0xffffffff) );
56 return (
DtU64 ( mspart ) << 32 ) | lspart;
59 #ifdef DtUSE_UTILITIES_NAMESPACE