mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
Comment 'register' keywords in 'generichash.cpp'
Commented due to deprecation in C++17.
This commit is contained in:
parent
7f559f837f
commit
fd9f9cb00d
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user