]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
Fix big endian ARM NEON path 3160/head
authorDaniel Kutenin <kutdanila@yandex.ru>
Mon, 13 Jun 2022 08:16:24 +0000 (09:16 +0100)
committerGitHub <noreply@github.com>
Mon, 13 Jun 2022 08:16:24 +0000 (09:16 +0100)
It is not using the NEON acceleration but the bit grouping was applied

lib/compress/zstd_lazy.c

index 6f8d11e145bc34af17aebe54cfd244dcb3c9979e..e54b43c0cd40e765dd2cb8fc5f238ac3914c8472 100644 (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;
     }