16 } bint = {0x01020304};
18 return 1 == bint.c[0];
23 return static_cast<uint64_t
>(roundl(fabsl(ld)));
39 ((ui << 8) & 0x00FF0000) |
40 ((ui >> 8) & 0x0000FF00) |
49 ((ull << 40) & 0x00FF000000000000) |
50 ((ull << 24) & 0x0000FF0000000000) |
51 ((ull << 8) & 0x000000FF00000000) |
52 ((ull >> 8) & 0x00000000FF000000) |
53 ((ull >> 24) & 0x0000000000FF0000) |
54 ((ull >> 40) & 0x000000000000FF00) |
void swapByteOrder16(uint16_t &us)
Swaps byte order on little-endian systems and does nothing otherwise.
void swapByteOrder32(uint32_t &ui)
static bool isBigEndian()
uint64_t rounduint64(long double ld)
Converts numbers to 64 bit wide unsigned integer whereby any signedness is ignored.
void swapByteOrder64(uint64_t &ull)