Merge pull request #4620 from JosJuice/android-byteswap
Don't use generic byteswapping on Android
This commit is contained in:
commit
82e003ebb6
|
@ -134,9 +134,7 @@ inline u64 swap64(u64 _data)
|
||||||
{
|
{
|
||||||
return _byteswap_uint64(_data);
|
return _byteswap_uint64(_data);
|
||||||
}
|
}
|
||||||
#elif __linux__ && !(ANDROID && _M_ARM_64)
|
#elif __linux__
|
||||||
// Android NDK r10c has broken builtin byte swap routines
|
|
||||||
// Disabled for now.
|
|
||||||
inline u16 swap16(u16 _data)
|
inline u16 swap16(u16 _data)
|
||||||
{
|
{
|
||||||
return bswap_16(_data);
|
return bswap_16(_data);
|
||||||
|
|
Loading…
Reference in New Issue