Add a NEON-optimized version of XXH32.

This takes at least 40% less time to hash on NEON/ARM devices.
This commit is contained in:
Unknown W. Brackets committed 2014-03-25 00:34:55 -07:00
1 parent 3ec61274fa
commit b800762ceb
8 files changed
+118 -12

No files matched your search

+1 -1
View File
@@ -734,7 +734,7 @@ void TextureCache::UpdateCurrentClut() {
// If not, we're going to hash random data, which hopefully doesn't cause a performance issue.
const u32 clutExtendedBytes = clutTotalBytes_ + clutBaseBytes;
clutHash_ = XXH32((const char *)clutBufRaw_, clutExtendedBytes, 0xC0108888);
clutHash_ = DoReliableHash((const char *)clutBufRaw_, clutExtendedBytes, 0xC0108888);
// Avoid a copy when we don't need to convert colors.
if (clutFormat != GE_CMODE_32BIT_ABGR8888) {