Skip to content

Commit

Permalink
Merge pull request #3160 from danlark1/patch-1
Browse files Browse the repository at this point in the history
Fix big endian ARM NEON path
  • Loading branch information
embg authored Jun 13, 2022
2 parents 3b1bd91 + 05f3f41 commit b944db0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/compress/zstd_lazy.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit b944db0

Please sign in to comment.