summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar ShizZy2014-04-22 18:47:43 -0400
committerGravatar ShizZy2014-04-22 18:47:43 -0400
commitc47992114216c461528e441f970432a6f3f0873f (patch)
tree77724ebda82a40186713118e06819422e0c3d9fc
parentupdated CMakeLists for missing files (diff)
downloadyuzu-c47992114216c461528e441f970432a6f3f0873f.tar.gz
yuzu-c47992114216c461528e441f970432a6f3f0873f.tar.xz
yuzu-c47992114216c461528e441f970432a6f3f0873f.zip
removed duplicate rotl/rotr functions
-rw-r--r--src/common/platform.h26
1 files changed, 0 insertions, 26 deletions
diff --git a/src/common/platform.h b/src/common/platform.h
index 633f1d694..1e8dffbd4 100644
--- a/src/common/platform.h
+++ b/src/common/platform.h
@@ -108,32 +108,6 @@ inline struct tm* localtime_r(const time_t *clock, struct tm *result) {
108 108
109typedef void EXCEPTION_POINTERS; 109typedef void EXCEPTION_POINTERS;
110 110
111inline u32 _rotl(u32 x, int shift) {
112 shift &= 31;
113 if (0 == shift) {
114 return x;
115 }
116 return (x << shift) | (x >> (32 - shift));
117}
118
119inline u64 _rotl64(u64 x, u32 shift){
120 u32 n = shift % 64;
121 return (x << n) | (x >> (64 - n));
122}
123
124inline u32 _rotr(u32 x, int shift) {
125 shift &= 31;
126 if (0 == shift) {
127 return x;
128 }
129 return (x >> shift) | (x << (32 - shift));
130}
131
132inline u64 _rotr64(u64 x, u32 shift){
133 u32 n = shift % 64;
134 return (x >> n) | (x << (64 - n));
135}
136
137#endif 111#endif
138 112
139#define GCC_VERSION_AVAILABLE(major, minor) (defined(__GNUC__) && (__GNUC__ > (major) || \ 113#define GCC_VERSION_AVAILABLE(major, minor) (defined(__GNUC__) && (__GNUC__ > (major) || \