6static inline uint32_t
htonl(uint32_t hostlong) {
8 if (__BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__) {
10 return ((hostlong & 0xFF000000) >> 24) |
11 ((hostlong & 0x00FF0000) >> 8) |
12 ((hostlong & 0x0000FF00) << 8) |
13 ((hostlong & 0x000000FF) << 24);