1 #ifndef _TOOLS_ENDIAN_H
2 #define _TOOLS_ENDIAN_H
6 #if __BYTE_ORDER == __LITTLE_ENDIAN
12 #define htole32(x) (x)
15 #define htole64(x) (x)
18 #else /* __BYTE_ORDER */
21 #define htole16(x) __bswap_16(x)
24 #define htole32(x) __bswap_32(x)
27 #define htole64(x) __bswap_64(x)
32 #endif /* _TOOLS_ENDIAN_H */