Merge pull request #3160 from danlark1/patch-1

Fix big endian ARM NEON path
This commit is contained in:
Elliot Gorokhovsky 2022-06-13 14:01:43 -04:00 committed by GitHub
commit b944db0c45
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;
}