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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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;
}