diff mbox series

[FFmpeg-devel] lavu/fixed_dsp: unroll RISC-V V loop

Message ID 20230714195436.71962-1-remi@remlab.net
State Accepted
Commit 3d79afbe700ade76b77de84245f22010e65ce1bb
Headers show
Series [FFmpeg-devel] lavu/fixed_dsp: unroll RISC-V V loop | expand

Checks

Context Check Description
yinshiyou/make_loongarch64 success Make finished
yinshiyou/make_fate_loongarch64 success Make fate finished
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished

Commit Message

Rémi Denis-Courmont July 14, 2023, 7:54 p.m. UTC
Before:
butterflies_fixed_c: 804.7
butterflies_fixed_rvv_i32: 348.2

After:
butterflies_fixed_rvv_i32: 308.7
---
 libavutil/riscv/fixed_dsp_rvv.S | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/libavutil/riscv/fixed_dsp_rvv.S b/libavutil/riscv/fixed_dsp_rvv.S
index a91316e1da..6e13395294 100644
--- a/libavutil/riscv/fixed_dsp_rvv.S
+++ b/libavutil/riscv/fixed_dsp_rvv.S
@@ -23,7 +23,7 @@ 
 // (a0) = (a0) + (a1), (a1) = (a0) - (a1) [0..a2-1]
 func ff_butterflies_fixed_rvv, zve32x
 1:
-        vsetvli t0, a2, e32, m1, ta, ma
+        vsetvli t0, a2, e32, m4, ta, ma
         vle32.v v16, (a0)
         sub     a2, a2, t0
         vle32.v v24, (a1)