Fix big endian ARM NEON path

It is not using the NEON acceleration but the bit grouping was applied
This commit is contained in:
Daniel Kutenin
2022-06-13 09:16:24 +01:00
committed by GitHub
parent 3b1bd91852
commit 05f3f415ce
+4
View File
@@ -965,6 +965,10 @@ ZSTD_row_matchMaskGroupWidth(const U32 rowEntries)
assert(rowEntries <= ZSTD_ROW_HASH_MAX_ENTRIES);
(void)rowEntries;
#if defined(ZSTD_ARCH_ARM_NEON)
/* NEON path only works for little endian */
if (!MEM_isLittleEndian()) {
return 1;
}
if (rowEntries == 16) {
return 4;
}