22inline uint64_t ntohll(x) {
return x; }
23inline uint32_t ntohl(x) {
return x; }
24inline uint16_t ntohs(x) {
return x; }
31 return ((x & 0x00000000000000ffull) << 56) |
32 ((x & 0x000000000000ff00ull) << 40) |
33 ((x & 0x0000000000ff0000ull) << 24) |
34 ((x & 0x00000000ff000000ull) << 8) |
35 ((x & 0x000000ff00000000ull) >> 8) |
36 ((x & 0x0000ff0000000000ull) >> 24) |
37 ((x & 0x00ff000000000000ull) >> 40) |
38 ((x & 0xff00000000000000ull) >> 56);
46 return ((x & 0x000000ff) << 24) |
47 ((x & 0x0000ff00) << 8) |
48 ((x & 0x00ff0000) >> 8) |
49 ((x & 0xff000000) >> 24);
57 return ((x & 0x00ff) << 8) |