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