Everywhere: Use east const in more places

These changes are compatible with clang-format 16 and will be mandatory
when we eventually bump clang-format version. So, since there are no
real downsides, let's commit them now.
This commit is contained in:
Dan Klishch 2024-04-18 15:32:56 -04:00 committed by Tim Flynn
commit 5ed7cd6e32
Notes: sideshowbarker 2024-07-16 23:38:54 +09:00
175 changed files with 353 additions and 353 deletions

View file

@ -532,7 +532,7 @@ void DeflateCompressor::close()
// Knuth's multiplicative hash on 4 bytes
u16 DeflateCompressor::hash_sequence(u8 const* bytes)
{
constexpr const u32 knuth_constant = 2654435761; // shares no common factors with 2^32
constexpr u32 const knuth_constant = 2654435761; // shares no common factors with 2^32
return ((bytes[0] | bytes[1] << 8 | bytes[2] << 16 | bytes[3] << 24) * knuth_constant) >> (32 - hash_bits);
}