aboutsummaryrefslogtreecommitdiffstats
path: root/libavutil/riscv/fixed_dsp_init.c
diff options
context:
space:
mode:
authorRémi Denis-Courmont <remi@remlab.net>2023-10-04 19:13:13 +0300
committerRémi Denis-Courmont <remi@remlab.net>2023-10-09 19:52:28 +0300
commitf39a8790e165589d0498ea86958d77b2b9fab8e8 (patch)
tree976fa40b89305da1d34f1dd322fe5731fe1d95f0 /libavutil/riscv/fixed_dsp_init.c
parent10eb3b9c9f9e4175d63e6e1e8418b73eb49601f4 (diff)
downloadffmpeg-f39a8790e165589d0498ea86958d77b2b9fab8e8.tar.gz
lavu/fixed_dsp: R-V V vector_fmul_window
Diffstat (limited to 'libavutil/riscv/fixed_dsp_init.c')
-rw-r--r--libavutil/riscv/fixed_dsp_init.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/libavutil/riscv/fixed_dsp_init.c b/libavutil/riscv/fixed_dsp_init.c
index 02883b31d4..6469b45374 100644
--- a/libavutil/riscv/fixed_dsp_init.c
+++ b/libavutil/riscv/fixed_dsp_init.c
@@ -25,6 +25,9 @@
#include "libavutil/cpu.h"
#include "libavutil/fixed_dsp.h"
+void ff_vector_fmul_window_fixed_rvv(int32_t *dst, const int32_t *src0,
+ const int32_t *src1, const int32_t *win,
+ int len);
void ff_vector_fmul_fixed_rvv(int *dst, const int *src0, const int *src1,
int len);
void ff_vector_fmul_reverse_fixed_rvv(int *dst, const int *src0,
@@ -40,6 +43,9 @@ 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)) {
+ if (flags & AV_CPU_FLAG_RVV_I64)
+ fdsp->vector_fmul_window = ff_vector_fmul_window_fixed_rvv;
+
fdsp->vector_fmul = ff_vector_fmul_fixed_rvv;
fdsp->vector_fmul_reverse = ff_vector_fmul_reverse_fixed_rvv;
fdsp->vector_fmul_add = ff_vector_fmul_add_fixed_rvv;