hash: macOS support

Signed-off-by: Simon Rozman <simon@rozman.si>
This commit is contained in:
2023-09-25 15:04:19 +02:00
parent c4e94150d1
commit 4e25c13d08
3 changed files with 8 additions and 3 deletions

View File

@@ -77,8 +77,7 @@ namespace stdex
#ifdef _WIN32
return _rotl(value, bits);
#else
return __rold(value, bits);
// return (value << bits) | (value >> (32 - bits));
return (value << bits) | (value >> (32 - bits));
#endif
}
}
}