Skip to content

Commit

Permalink
Don't use generic byteswapping on Android
Browse files Browse the repository at this point in the history
This seems to work fine nowadays.
  • Loading branch information
JosJuice committed Jan 6, 2017
1 parent e7359f2 commit 5e2b2f0
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Source/Core/Common/CommonFuncs.h
Original file line number Diff line number Diff line change
Expand Up @@ -134,9 +134,7 @@ inline u64 swap64(u64 _data)
{
return _byteswap_uint64(_data);
}
#elif __linux__ && !(ANDROID && _M_ARM_64)
// Android NDK r10c has broken builtin byte swap routines
// Disabled for now.
#elif __linux__
inline u16 swap16(u16 _data)
{
return bswap_16(_data);
Expand Down

0 comments on commit 5e2b2f0

Please sign in to comment.