avutil/x86/float_dsp: add fma3 for scalarproduct

This commit is contained in:
Paul B Mahol
2021-01-20 16:58:31 +01:00
parent cf2cf31805
commit 72acff9f59
2 changed files with 129 additions and 0 deletions

View File

@@ -74,6 +74,7 @@ void ff_vector_fmul_reverse_avx2(float *dst, const float *src0,
const float *src1, int len);
float ff_scalarproduct_float_sse(const float *v1, const float *v2, int order);
float ff_scalarproduct_float_fma3(const float *v1, const float *v2, int order);
void ff_butterflies_float_sse(float *av_restrict src0, float *av_restrict src1, int len);
@@ -112,5 +113,6 @@ av_cold void ff_float_dsp_init_x86(AVFloatDSPContext *fdsp)
fdsp->vector_fmac_scalar = ff_vector_fmac_scalar_fma3;
fdsp->vector_fmul_add = ff_vector_fmul_add_fma3;
fdsp->vector_dmac_scalar = ff_vector_dmac_scalar_fma3;
fdsp->scalarproduct_float = ff_scalarproduct_float_fma3;
}
}