Revert "ByteOrder.h: remove use of __builtin_bswap16."

This reverts commit 040dc2eebc.
This commit is contained in:
Jessica Hamilton
2014-05-30 20:39:43 +12:00
parent b20eb413cd
commit fad4fc59f9
3 changed files with 8 additions and 9 deletions
-4
View File
@@ -31,10 +31,6 @@ typedef uint32_t in_addr_t;
# else
extern unsigned int __swap_int32(unsigned int); /* private */
# endif
static inline uint16_t __swap_int16(uint16_t arg)
{
return (arg >> 8) | (arg << 8);
}
extern uint16_t __swap_int16(uint16_t); /* private */
# if BYTE_ORDER == LITTLE_ENDIAN
# define htonl(x) ((uint32_t)__swap_int32(x))