ByteOrder.h: remove use of __builtin_bswap16.

* Fixes the build for host compilers older than gcc-4.8
This commit is contained in:
Jessica Hamilton
2014-05-30 08:45:57 +12:00
parent d0592a1164
commit 040dc2eebc
3 changed files with 9 additions and 8 deletions
-6
View File
@@ -7,12 +7,6 @@
#include <ByteOrder.h>
uint16
__swap_int16(uint16 value)
{
return (value >> 8) | (value << 8);
}
uint32
__swap_int32(uint32 value)
{