Skip to content

Commit 05f3f41

Browse files
authored
Fix big endian ARM NEON path
It is not using the NEON acceleration but the bit grouping was applied
1 parent 3b1bd91 commit 05f3f41

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/compress/zstd_lazy.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -965,6 +965,10 @@ ZSTD_row_matchMaskGroupWidth(const U32 rowEntries)
965965
assert(rowEntries <= ZSTD_ROW_HASH_MAX_ENTRIES);
966966
(void)rowEntries;
967967
#if defined(ZSTD_ARCH_ARM_NEON)
968+
/* NEON path only works for little endian */
969+
if (!MEM_isLittleEndian()) {
970+
return 1;
971+
}
968972
if (rowEntries == 16) {
969973
return 4;
970974
}

0 commit comments

Comments
 (0)