Replaced macros with C++17 attributes.

This commit is contained in:
Бранимир Караџић
2023-12-02 20:16:26 -08:00
parent be3e348eb2
commit 06679e1cf1
6 changed files with 20 additions and 32 deletions

View File

@@ -126,8 +126,8 @@ uint32_t MurmurHash2A(const void * key, int len, uint32_t seed = 0)
switch(len)
{
case 3: t ^= data[2] << 16; BX_FALLTHROUGH;
case 2: t ^= data[1] << 8; BX_FALLTHROUGH;
case 3: t ^= data[2] << 16; [[fallthrough]];
case 2: t ^= data[1] << 8; [[fallthrough]];
case 1: t ^= data[0];
};
@@ -229,8 +229,8 @@ uint32_t MurmurHash3_x86_32(const void * key, int len, uint32_t seed)
switch(len & 3)
{
case 3: k1 ^= tail[2] << 16; BX_FALLTHROUGH;
case 2: k1 ^= tail[1] << 8; BX_FALLTHROUGH;
case 3: k1 ^= tail[2] << 16; [[fallthrough]];
case 2: k1 ^= tail[1] << 8; [[fallthrough]];
case 1: k1 ^= tail[0];
k1 *= c1; k1 = rotl32(k1,15); k1 *= c2; h1 ^= k1;
};