tl-parser: remove 16-bit endianness functions.
This commit is contained in:
parent
ff6615e734
commit
c073f3dc49
@ -25,11 +25,6 @@
|
|||||||
|
|
||||||
# include <libkern/OSByteOrder.h>
|
# include <libkern/OSByteOrder.h>
|
||||||
|
|
||||||
# define htobe16(x) OSSwapHostToBigInt16(x)
|
|
||||||
# define htole16(x) OSSwapHostToLittleInt16(x)
|
|
||||||
# define be16toh(x) OSSwapBigToHostInt16(x)
|
|
||||||
# define le16toh(x) OSSwapLittleToHostInt16(x)
|
|
||||||
|
|
||||||
# define htobe32(x) OSSwapHostToBigInt32(x)
|
# define htobe32(x) OSSwapHostToBigInt32(x)
|
||||||
# define htole32(x) OSSwapHostToLittleInt32(x)
|
# define htole32(x) OSSwapHostToLittleInt32(x)
|
||||||
# define be32toh(x) OSSwapBigToHostInt32(x)
|
# define be32toh(x) OSSwapBigToHostInt32(x)
|
||||||
@ -53,9 +48,6 @@
|
|||||||
|
|
||||||
# include <sys/endian.h>
|
# include <sys/endian.h>
|
||||||
|
|
||||||
# define be16toh(x) betoh16(x)
|
|
||||||
# define le16toh(x) letoh16(x)
|
|
||||||
|
|
||||||
# define be32toh(x) betoh32(x)
|
# define be32toh(x) betoh32(x)
|
||||||
# define le32toh(x) letoh32(x)
|
# define le32toh(x) letoh32(x)
|
||||||
|
|
||||||
@ -71,11 +63,6 @@
|
|||||||
|
|
||||||
# if BYTE_ORDER == LITTLE_ENDIAN
|
# if BYTE_ORDER == LITTLE_ENDIAN
|
||||||
|
|
||||||
# define htobe16(x) htons(x)
|
|
||||||
# define htole16(x) (x)
|
|
||||||
# define be16toh(x) ntohs(x)
|
|
||||||
# define le16toh(x) (x)
|
|
||||||
|
|
||||||
# define htobe32(x) htonl(x)
|
# define htobe32(x) htonl(x)
|
||||||
# define htole32(x) (x)
|
# define htole32(x) (x)
|
||||||
# define be32toh(x) ntohl(x)
|
# define be32toh(x) ntohl(x)
|
||||||
@ -89,11 +76,6 @@
|
|||||||
# elif BYTE_ORDER == BIG_ENDIAN
|
# elif BYTE_ORDER == BIG_ENDIAN
|
||||||
|
|
||||||
/* that would be xbox 360 */
|
/* that would be xbox 360 */
|
||||||
# define htobe16(x) (x)
|
|
||||||
# define htole16(x) __builtin_bswap16(x)
|
|
||||||
# define be16toh(x) (x)
|
|
||||||
# define le16toh(x) __builtin_bswap16(x)
|
|
||||||
|
|
||||||
# define htobe32(x) (x)
|
# define htobe32(x) (x)
|
||||||
# define htole32(x) __builtin_bswap32(x)
|
# define htole32(x) __builtin_bswap32(x)
|
||||||
# define be32toh(x) (x)
|
# define be32toh(x) (x)
|
||||||
|
Loading…
Reference in New Issue
Block a user