From 6cf6946d7f9475eae465e97e8d02942fa4fc2435 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=84=E5=B0=9A=E8=AF=9A10330306?= Date: Thu, 12 Mar 2026 20:02:06 +0800 Subject: [PATCH] huf_decompress: enable 4-way fast loop on riscv64 --- lib/decompress/huf_decompress.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/decompress/huf_decompress.c b/lib/decompress/huf_decompress.c index 92020617824..d17b1360123 100644 --- a/lib/decompress/huf_decompress.c +++ b/lib/decompress/huf_decompress.c @@ -1627,7 +1627,7 @@ void HUF_decompress4X2_usingDTable_internal_fast_c_loop(HUF_DecompressFastArgs* } \ } while (0) -#if defined(__aarch64__) +#if defined(__aarch64__) || (defined(__riscv) && (__riscv_xlen == 64)) # define HUF_4X2_4WAY 1 #else # define HUF_4X2_4WAY 0