Codechange: replace ROR/ROL with std::rotr/rotl

This commit is contained in:
Rubidium
2024-01-17 20:58:06 +01:00
committed by rubidium42
parent f457be5a27
commit 47c0184a0b
7 changed files with 10 additions and 41 deletions

View File

@@ -115,7 +115,7 @@ LangString *StringData::Find(const std::string_view s)
uint StringData::VersionHashStr(uint hash, const char *s) const
{
for (; *s != '\0'; s++) {
hash = ROL(hash, 3) ^ *s;
hash = std::rotl(hash, 3) ^ *s;
hash = (hash & 1 ? hash >> 1 ^ 0xDEADBEEF : hash >> 1);
}
return hash;