From 05f3f415ce3ca73abc82936752829a3ee75242e2 Mon Sep 17 00:00:00 2001 From: Daniel Kutenin Date: Mon, 13 Jun 2022 09:16:24 +0100 Subject: [PATCH] Fix big endian ARM NEON path It is not using the NEON acceleration but the bit grouping was applied --- lib/compress/zstd_lazy.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/compress/zstd_lazy.c b/lib/compress/zstd_lazy.c index 6f8d11e14..e54b43c0c 100644 --- a/lib/compress/zstd_lazy.c +++ b/lib/compress/zstd_lazy.c @@ -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; } -- 2.47.2