mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-10 21:16:24 +02:00
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:
1 parent
139277bc1a
commit
2b16b5b79b
12 files changed
+66
-32
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user