diff options
| author | 2014-04-22 18:47:43 -0400 | |
|---|---|---|
| committer | 2014-04-22 18:47:43 -0400 | |
| commit | c47992114216c461528e441f970432a6f3f0873f (patch) | |
| tree | 77724ebda82a40186713118e06819422e0c3d9fc | |
| parent | updated CMakeLists for missing files (diff) | |
| download | yuzu-c47992114216c461528e441f970432a6f3f0873f.tar.gz yuzu-c47992114216c461528e441f970432a6f3f0873f.tar.xz yuzu-c47992114216c461528e441f970432a6f3f0873f.zip | |
removed duplicate rotl/rotr functions
| -rw-r--r-- | src/common/platform.h | 26 |
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 | ||
| 109 | typedef void EXCEPTION_POINTERS; | 109 | typedef void EXCEPTION_POINTERS; |
| 110 | 110 | ||
| 111 | inline 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 | |||
| 119 | inline u64 _rotl64(u64 x, u32 shift){ | ||
| 120 | u32 n = shift % 64; | ||
| 121 | return (x << n) | (x >> (64 - n)); | ||
| 122 | } | ||
| 123 | |||
| 124 | inline 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 | |||
| 132 | inline 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) || \ |