Misc. Linux improvements and bug fixes. (#121)

Co-authored-by: Tom Lally <tomlally@protonmail.com>
This commit is contained in:
Tom Lally 2022-09-01 19:46:20 +01:00 committed by GitHub
parent b8d4cf5b29
commit d3a7b3b5a6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
23 changed files with 101 additions and 104 deletions

View file

@ -713,8 +713,8 @@ void _calculateMappedImportNameHash(const char* rplName, const char* funcName, u
uint64 v = (uint64)*rplName;
h1 += v;
h2 ^= v;
h1 = std::rotl(h1, 3);
h2 = std::rotl(h2, 7);
h1 = std::rotl<uint64>(h1, 3);
h2 = std::rotl<uint64>(h2, 7);
rplName++;
}
// funcName
@ -723,8 +723,8 @@ void _calculateMappedImportNameHash(const char* rplName, const char* funcName, u
uint64 v = (uint64)*funcName;
h1 += v;
h2 ^= v;
h1 = std::rotl(h1, 3);
h2 = std::rotl(h2, 7);
h1 = std::rotl<uint64>(h1, 3);
h2 = std::rotl<uint64>(h2, 7);
funcName++;
}
*h1Out = h1;