aboutsummaryrefslogtreecommitdiffstats
path: root/libavutil/riscv/fixed_dsp_init.c
diff options
context:
space:
mode:
authorRémi Denis-Courmont <remi@remlab.net>2023-10-04 18:25:29 +0300
committerRémi Denis-Courmont <remi@remlab.net>2023-10-09 19:52:28 +0300
commitda7a77fb0a6b1397f0a226ef754ff89cd2cdee35 (patch)
treec4d37c61e1730735b129052d0cc537787176c301 /libavutil/riscv/fixed_dsp_init.c
parentbf911cc1bf7fa578ea4ab6fa552b28727ffaf8b3 (diff)
downloadffmpeg-da7a77fb0a6b1397f0a226ef754ff89cd2cdee35.tar.gz
lavu/fixed_dsp: R-V V vector_fmul_reverse
Diffstat (limited to 'libavutil/riscv/fixed_dsp_init.c')
-rw-r--r--libavutil/riscv/fixed_dsp_init.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavutil/riscv/fixed_dsp_init.c b/libavutil/riscv/fixed_dsp_init.c
index 4b239829f5..470b35fb63 100644
--- a/libavutil/riscv/fixed_dsp_init.c
+++ b/libavutil/riscv/fixed_dsp_init.c
@@ -25,6 +25,8 @@
#include "libavutil/cpu.h"
#include "libavutil/fixed_dsp.h"
+void ff_vector_fmul_reverse_fixed_rvv(int *dst, const int *src0,
+ const int *src1, int len);
void ff_vector_fmul_add_fixed_rvv(int *dst, const int *src0, const int *src1,
const int *src2, int len);
int ff_scalarproduct_fixed_rvv(const int *v1, const int *v2, int len);
@@ -36,6 +38,7 @@ av_cold void ff_fixed_dsp_init_riscv(AVFixedDSPContext *fdsp)
int flags = av_get_cpu_flags();
if ((flags & AV_CPU_FLAG_RVV_I32) && (flags & AV_CPU_FLAG_RVB_ADDR)) {
+ fdsp->vector_fmul_reverse = ff_vector_fmul_reverse_fixed_rvv;
fdsp->vector_fmul_add = ff_vector_fmul_add_fixed_rvv;
if (flags & AV_CPU_FLAG_RVV_I64)