Comment 'register' keywords in 'generichash.cpp'

Commented due to deprecation in C++17.
This commit is contained in:
Kawe Mazidjatari 2023-04-01 21:14:42 +02:00
parent 7f559f837f
commit fd9f9cb00d

View File

@ -144,7 +144,7 @@ uint32 FASTCALL HashStringCaselessConventional(const char* pszKey)
//-----------------------------------------------------------------------------
unsigned FASTCALL HashInt(const int n)
{
register unsigned even, odd;
/*register*/ unsigned even, odd;
odd = g_nRandomValues[(((unsigned)n >> 8) & 0xff)];
even = g_nRandomValues[odd ^ ((unsigned)n >> 24)];
odd = g_nRandomValues[even ^ ((unsigned)n >> 16) & 0xff];
@ -159,8 +159,8 @@ unsigned FASTCALL HashInt(const int n)
//-----------------------------------------------------------------------------
unsigned FASTCALL Hash4(const void* pKey)
{
register const uint32* p = (const uint32*)pKey;
register unsigned even,
/*register*/ const uint32* p = (const uint32*)pKey;
/*register*/ unsigned even,
odd,
n;
n = *p;
@ -179,8 +179,8 @@ unsigned FASTCALL Hash4(const void* pKey)
//-----------------------------------------------------------------------------
unsigned FASTCALL Hash8(const void* pKey)
{
register const uint32* p = (const uint32*)pKey;
register unsigned even,
/*register*/ const uint32* p = (const uint32*)pKey;
/*register*/ unsigned even,
odd,
n;
n = *p;
@ -205,8 +205,8 @@ unsigned FASTCALL Hash8(const void* pKey)
//-----------------------------------------------------------------------------
unsigned FASTCALL Hash12(const void* pKey)
{
register const uint32* p = (const uint32*)pKey;
register unsigned even,
/*register*/ const uint32* p = (const uint32*)pKey;
/*register*/ unsigned even,
odd,
n;
n = *p;
@ -238,8 +238,8 @@ unsigned FASTCALL Hash12(const void* pKey)
//-----------------------------------------------------------------------------
unsigned FASTCALL Hash16(const void* pKey)
{
register const uint32* p = (const uint32*)pKey;
register unsigned even,
/*register*/ const uint32* p = (const uint32*)pKey;
/*register*/ unsigned even,
odd,
n;
n = *p;