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

@@ -256,9 +256,9 @@ struct HashMurmur2APod
switch (m_count)
{
case 3: kk |= m_tail[2] << 16; BX_FALLTHROUGH;
case 2: kk |= m_tail[1] << 8; BX_FALLTHROUGH;
case 1: kk |= m_tail[0]; BX_FALLTHROUGH;
case 3: kk |= m_tail[2] << 16; [[fallthrough]];
case 2: kk |= m_tail[1] << 8; [[fallthrough]];
case 1: kk |= m_tail[0]; [[fallthrough]];
case 0: mix(kk); break;
default: BX_ASSERT(false, "Bug, m_count can't be %d (expected < 4).", m_count); BX_UNREACHABLE;
}
@@ -318,8 +318,8 @@ struct HashMurmur3Pod
switch (m_count)
{
case 3: kk |= m_tail[2] << 16; BX_FALLTHROUGH;
case 2: kk |= m_tail[1] << 8; BX_FALLTHROUGH;
case 3: kk |= m_tail[2] << 16; [[fallthrough]];
case 2: kk |= m_tail[1] << 8; [[fallthrough]];
case 1: kk |= m_tail[0]; mix1(kk); break;
case 0: break;
default: BX_ASSERT(false, "Bug, m_count can't be %d (expected < 4).", m_count); BX_UNREACHABLE;