summaryrefslogtreecommitdiffstats
path: root/src/common
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2016-05-09 05:11:59 +0200
committerLioncash <mathew1800@gmail.com>2016-05-09 05:12:04 +0200
commitaef463010282d2daac4ce4aead1f20a8fa588ae3 (patch)
treebaa3c6d8d256350843a4d616186f878a1d2b39f7 /src/common
parentMerge pull request #1766 from Subv/log_cpu (diff)
downloadyuzu-aef463010282d2daac4ce4aead1f20a8fa588ae3.tar
yuzu-aef463010282d2daac4ce4aead1f20a8fa588ae3.tar.gz
yuzu-aef463010282d2daac4ce4aead1f20a8fa588ae3.tar.bz2
yuzu-aef463010282d2daac4ce4aead1f20a8fa588ae3.tar.lz
yuzu-aef463010282d2daac4ce4aead1f20a8fa588ae3.tar.xz
yuzu-aef463010282d2daac4ce4aead1f20a8fa588ae3.tar.zst
yuzu-aef463010282d2daac4ce4aead1f20a8fa588ae3.zip
Diffstat (limited to 'src/common')
-rw-r--r--src/common/swap.h28
1 files changed, 0 insertions, 28 deletions
diff --git a/src/common/swap.h b/src/common/swap.h
index a7c37bc44..f51751d29 100644
--- a/src/common/swap.h
+++ b/src/common/swap.h
@@ -58,9 +58,6 @@
namespace Common {
-inline u8 swap8(u8 _data) {return _data;}
-inline u32 swap24(const u8* _data) {return (_data[0] << 16) | (_data[1] << 8) | _data[2];}
-
#ifdef _MSC_VER
inline u16 swap16(u16 _data) {return _byteswap_ushort(_data);}
inline u32 swap32(u32 _data) {return _byteswap_ulong (_data);}
@@ -115,31 +112,6 @@ inline double swapd(double f) {
return dat2.f;
}
-inline u16 swap16(const u8* _pData) {return swap16(*(const u16*)_pData);}
-inline u32 swap32(const u8* _pData) {return swap32(*(const u32*)_pData);}
-inline u64 swap64(const u8* _pData) {return swap64(*(const u64*)_pData);}
-
-template <int count>
-void swap(u8*);
-
-template <>
-inline void swap<1>(u8* data) { }
-
-template <>
-inline void swap<2>(u8* data) {
- *reinterpret_cast<u16*>(data) = swap16(data);
-}
-
-template <>
-inline void swap<4>(u8* data) {
- *reinterpret_cast<u32*>(data) = swap32(data);
-}
-
-template <>
-inline void swap<8>(u8* data) {
- *reinterpret_cast<u64*>(data) = swap64(data);
-}
-
} // Namespace Common