Go to the documentation of this file.
18 #include <sys/endian.h>
24 #include <libkern/OSByteOrder.h>
25 #define htobe16(x) OSSwapHostToBigInt16(x)
26 #define htole16(x) OSSwapHostToLittleInt16(x)
27 #define be16toh(x) OSSwapBigToHostInt16(x)
28 #define le16toh(x) OSSwapLittleToHostInt16(x)
29 #define htobe32(x) OSSwapHostToBigInt32(x)
30 #define htole32(x) OSSwapHostToLittleInt32(x)
31 #define be32toh(x) OSSwapBigToHostInt32(x)
32 #define le32toh(x) OSSwapLittleToHostInt32(x)
33 #define htobe64(x) OSSwapHostToBigInt64(x)
34 #define htole64(x) OSSwapHostToLittleInt64(x)
35 #define be64toh(x) OSSwapBigToHostInt64(x)
36 #define le64toh(x) OSSwapLittleToHostInt64(x)