summaryrefslogtreecommitdiff
path: root/Source/Core/Common/Hash.cpp
diff options
context:
space:
mode:
authorJosJuice <josjuice@gmail.com>2023-02-17 16:49:02 +0100
committerJosJuice <josjuice@gmail.com>2023-02-17 16:58:24 +0100
commit90b676d3681286b9e92db6214e65053e4f4dbbcf (patch)
treeeff0f8cbee0ca867eeb73ca01ee0c1a0a3dd5aca /Source/Core/Common/Hash.cpp
parent661b74f4a3d9fee4acf80b4e399a6c45e1f21fa3 (diff)
Android: Fix armeabi-v7a build
This very much isn't a build configuration that we're going to ship, but I want to be able to tell people that they can build it on their own if they really want to see how terribly it performs :) Just like before, you'll need to edit two lines in app/build.gradle to define ENABLE_GENERIC=ON and actually enable armeabi-v7a if you want an armeabi-v7a build. This commit just fixes some compilations errors that crop up if you do so.
Diffstat (limited to 'Source/Core/Common/Hash.cpp')
-rw-r--r--Source/Core/Common/Hash.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/Core/Common/Hash.cpp b/Source/Core/Common/Hash.cpp
index e6b421e96f..51182a0463 100644
--- a/Source/Core/Common/Hash.cpp
+++ b/Source/Core/Common/Hash.cpp
@@ -216,15 +216,15 @@ static u32 fmix32(u32 h)
static void bmix32(u32& h1, u32& h2, u32& k1, u32& k2, u32& c1, u32& c2)
{
k1 *= c1;
- k1 = Common::RotateLeft(k1, 11);
+ k1 = std::rotl(k1, 11);
k1 *= c2;
h1 ^= k1;
h1 += h2;
- h2 = Common::RotateLeft(h2, 17);
+ h2 = std::rotl(h2, 17);
k2 *= c2;
- k2 = Common::RotateLeft(k2, 11);
+ k2 = std::rotl(k2, 11);
k2 *= c1;
h2 ^= k2;
h2 += h1;