summaryrefslogtreecommitdiffstats
path: root/src/common/common.h
diff options
context:
space:
mode:
authorEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2015-01-05 17:30:02 +0100
committerEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2015-01-06 19:57:28 +0100
commit6b411c63c9b084e99a3711da10f93225ff93cc85 (patch)
tree963e9f9afcbc6e052466e4d3a1acee7cd654f8b3 /src/common/common.h
parentMerge pull request #402 from chrisvj/master (diff)
downloadyuzu-6b411c63c9b084e99a3711da10f93225ff93cc85.tar
yuzu-6b411c63c9b084e99a3711da10f93225ff93cc85.tar.gz
yuzu-6b411c63c9b084e99a3711da10f93225ff93cc85.tar.bz2
yuzu-6b411c63c9b084e99a3711da10f93225ff93cc85.tar.lz
yuzu-6b411c63c9b084e99a3711da10f93225ff93cc85.tar.xz
yuzu-6b411c63c9b084e99a3711da10f93225ff93cc85.tar.zst
yuzu-6b411c63c9b084e99a3711da10f93225ff93cc85.zip
Diffstat (limited to 'src/common/common.h')
-rw-r--r--src/common/common.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/common/common.h b/src/common/common.h
index ba33373ae..bf48ae667 100644
--- a/src/common/common.h
+++ b/src/common/common.h
@@ -154,16 +154,10 @@ enum EMUSTATE_CHANGE
#ifdef _MSC_VER
-#ifndef _XBOX
inline unsigned long long bswap64(unsigned long long x) { return _byteswap_uint64(x); }
inline unsigned int bswap32(unsigned int x) { return _byteswap_ulong(x); }
inline unsigned short bswap16(unsigned short x) { return _byteswap_ushort(x); }
#else
-inline unsigned long long bswap64(unsigned long long x) { return __loaddoublewordbytereverse(0, &x); }
-inline unsigned int bswap32(unsigned int x) { return __loadwordbytereverse(0, &x); }
-inline unsigned short bswap16(unsigned short x) { return __loadshortbytereverse(0, &x); }
-#endif
-#else
// TODO: speedup
inline unsigned short bswap16(unsigned short x) { return (x << 8) | (x >> 8); }
inline unsigned int bswap32(unsigned int x) { return (x >> 24) | ((x & 0xFF0000) >> 8) | ((x & 0xFF00) << 8) | (x << 24);}