3 /* Byte swap a 64-bit number. */
4 static inline uint64_t swap64(uint64_t in
)
6 #ifndef BYTEORDER_BIG_ENDIAN
7 /* Little endian, flip the bytes around until someone makes a faster/better
13 rv
= (rv
<< 8) | (in
& 0xff);
18 /* big-endian machines don't need byte swapping */
23 uint64_t ntohll(uint64_t value
)
28 uint64_t htonll(uint64_t value
)