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:
parent
139277bc1a
commit
2b16b5b79b
12 changed files with 66 additions and 32 deletions
|
@ -157,7 +157,8 @@ void DoUnswizzleTex16Basic(const u8 *texptr, u32 *ydestp, int bxc, int byc, u32
|
|||
#ifndef _M_SSE
|
||||
QuickTexHashFunc DoQuickTexHash = &QuickTexHashBasic;
|
||||
UnswizzleTex16Func DoUnswizzleTex16 = &DoUnswizzleTex16Basic;
|
||||
ReliableHashFunc DoReliableHash = &XXH32;
|
||||
ReliableHash32Func DoReliableHash32 = &XXH32;
|
||||
ReliableHash64Func DoReliableHash64 = &XXH64;
|
||||
#endif
|
||||
|
||||
// This has to be done after CPUDetect has done its magic.
|
||||
|
@ -168,7 +169,7 @@ void SetupTextureDecoder() {
|
|||
DoUnswizzleTex16 = &DoUnswizzleTex16NEON;
|
||||
#ifndef IOS
|
||||
// Not sure if this is safe on iOS, it's had issues with xxhash.
|
||||
DoReliableHash = &ReliableHashNEON;
|
||||
DoReliableHash32 = &ReliableHash32NEON;
|
||||
#endif
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue