diff options
author | Lioncash <mathew1800@gmail.com> | 2019-04-12 02:15:44 +0200 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2019-04-12 02:15:47 +0200 |
commit | 598954436ffd4da2d6cf8c6737b4c675afcb8447 (patch) | |
tree | 985eb815c3a893cccc1cea12def62bb8be520748 /src | |
parent | Merge pull request #2354 from lioncash/header (diff) | |
download | yuzu-598954436ffd4da2d6cf8c6737b4c675afcb8447.tar yuzu-598954436ffd4da2d6cf8c6737b4c675afcb8447.tar.gz yuzu-598954436ffd4da2d6cf8c6737b4c675afcb8447.tar.bz2 yuzu-598954436ffd4da2d6cf8c6737b4c675afcb8447.tar.lz yuzu-598954436ffd4da2d6cf8c6737b4c675afcb8447.tar.xz yuzu-598954436ffd4da2d6cf8c6737b4c675afcb8447.tar.zst yuzu-598954436ffd4da2d6cf8c6737b4c675afcb8447.zip |
Diffstat (limited to 'src')
-rw-r--r-- | src/common/swap.h | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/src/common/swap.h b/src/common/swap.h index b3eab1324..cb723cb8a 100644 --- a/src/common/swap.h +++ b/src/common/swap.h @@ -71,19 +71,6 @@ inline u32 swap32(u32 _data) { inline u64 swap64(u64 _data) { return _byteswap_uint64(_data); } -#elif defined(ARCHITECTURE_ARM) && (__ARM_ARCH >= 6) -inline u16 swap16(u16 _data) { - u32 data = _data; - __asm__("rev16 %0, %1\n" : "=l"(data) : "l"(data)); - return (u16)data; -} -inline u32 swap32(u32 _data) { - __asm__("rev %0, %1\n" : "=l"(_data) : "l"(_data)); - return _data; -} -inline u64 swap64(u64 _data) { - return ((u64)swap32(_data) << 32) | swap32(_data >> 32); -} #elif __linux__ inline u16 swap16(u16 _data) { return bswap_16(_data); |