Use XXH64 on 64-bit systems.

I'm not able to reproduce any real performance difference, but I know
there are some games which do more hashing and it may help there.
This commit is contained in:
Unknown W. Brackets committed 2014-10-26 17:49:24 -07:00
1 parent 139277bc1a
commit 2b16b5b79b
12 files changed
+66 -32

No files matched your search

+7 -3
View File
@@ -42,7 +42,11 @@ bool isInInterval(u32 start, u32 size, u32 value)
static u32 computeHash(u32 address, u32 size)
{
return XXH32(Memory::GetPointer(address),size,0xBACD7814);
#ifdef _M_X64
return XXH64(Memory::GetPointer(address), size, 0xBACD7814BACD7814LL);
#else
return XXH32(Memory::GetPointer(address), size, 0xBACD7814);
#endif
}
@@ -356,7 +360,7 @@ void DisassemblyFunction::recheck()
if (!PSP_IsInited())
return;
u32 newHash = computeHash(address,size);
HashType newHash = computeHash(address,size);
if (hash != newHash)
{
hash = newHash;
@@ -819,7 +823,7 @@ void DisassemblyData::recheck()
if (!PSP_IsInited())
return;
u32 newHash = computeHash(address,size);
HashType newHash = computeHash(address,size);
if (newHash != hash)
{
hash = newHash;