[FFmpeg-devel] [PATCH 3/5] lavc/aacpsdsp: unroll RISC-V V mul_pair_single

Rémi Denis-Courmont remi at remlab.net
Fri Sep 29 19:26:03 EEST 2023


---
 libavcodec/riscv/aacpsdsp_rvv.S | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavcodec/riscv/aacpsdsp_rvv.S b/libavcodec/riscv/aacpsdsp_rvv.S
index 1a92fed515..f552d50e23 100644
--- a/libavcodec/riscv/aacpsdsp_rvv.S
+++ b/libavcodec/riscv/aacpsdsp_rvv.S
@@ -38,14 +38,14 @@ endfunc
 
 func ff_ps_mul_pair_single_rvv, zve32f
 1:
-        vsetvli     t0, a3, e32, m1, ta, ma
+        vsetvli     t0, a3, e32, m4, ta, ma
         vlseg2e32.v v24, (a1)
         sub         a3, a3, t0
         vle32.v     v16, (a2)
         sh3add      a1, t0, a1
         vfmul.vv    v24, v24, v16
         sh2add      a2, t0, a2
-        vfmul.vv    v25, v25, v16
+        vfmul.vv    v28, v28, v16
         vsseg2e32.v v24, (a0)
         sh3add      a0, t0, a0
         bnez        a3, 1b
-- 
2.40.1



More information about the ffmpeg-devel mailing list