diff options
author | Rémi Denis-Courmont <remi@remlab.net> | 2022-09-26 17:52:38 +0300 |
---|---|---|
committer | Lynne <dev@lynne.ee> | 2022-09-27 13:19:52 +0200 |
commit | cd77662953942cf166f0115b21cb8619e2e8f630 (patch) | |
tree | 48fc82c466502ad52a5c4de04d0dedd5a0b18be2 /libavutil/riscv/float_dsp_init.c | |
parent | b493370662eaa87f84450e876b8b61b34d91f23d (diff) | |
download | ffmpeg-cd77662953942cf166f0115b21cb8619e2e8f630.tar.gz |
lavu/floatdsp: RISC-V V scalarproduct_float
Diffstat (limited to 'libavutil/riscv/float_dsp_init.c')
-rw-r--r-- | libavutil/riscv/float_dsp_init.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavutil/riscv/float_dsp_init.c b/libavutil/riscv/float_dsp_init.c index 44a505308d..e61f887862 100644 --- a/libavutil/riscv/float_dsp_init.c +++ b/libavutil/riscv/float_dsp_init.c @@ -38,6 +38,7 @@ void ff_vector_fmul_add_rvv(float *dst, const float *src0, const float *src1, void ff_vector_fmul_reverse_rvv(float *dst, const float *src0, const float *src1, int len); void ff_butterflies_float_rvv(float *v1, float *v2, int len); +float ff_scalarproduct_float_rvv(const float *v1, const float *v2, int len); void ff_vector_dmul_rvv(double *dst, const double *src0, const double *src1, int len); @@ -59,6 +60,7 @@ av_cold void ff_float_dsp_init_riscv(AVFloatDSPContext *fdsp) fdsp->vector_fmul_add = ff_vector_fmul_add_rvv; fdsp->vector_fmul_reverse = ff_vector_fmul_reverse_rvv; fdsp->butterflies_float = ff_butterflies_float_rvv; + fdsp->scalarproduct_float = ff_scalarproduct_float_rvv; } if (flags & AV_CPU_FLAG_RVV_F64) { |