Codechange: replace ROR/ROL with std::rotr/rotl
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user