From c74b86699c86bdf62e8570f41d8a38be5710baa3 Mon Sep 17 00:00:00 2001 From: James Almer Date: Thu, 20 Mar 2014 15:37:56 -0300 Subject: x86/synth_filter: add synth_filter_fma3 Signed-off-by: James Almer Signed-off-by: Anton Khirnov --- libavcodec/x86/dcadsp_init.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'libavcodec/x86/dcadsp_init.c') diff --git a/libavcodec/x86/dcadsp_init.c b/libavcodec/x86/dcadsp_init.c index d7e0d65917..beef288b13 100644 --- a/libavcodec/x86/dcadsp_init.c +++ b/libavcodec/x86/dcadsp_init.c @@ -82,6 +82,9 @@ SYNTH_FILTER_FUNC(sse) #endif SYNTH_FILTER_FUNC(sse2) SYNTH_FILTER_FUNC(avx) +#if HAVE_FMA3_EXTERNAL +SYNTH_FILTER_FUNC(fma3) +#endif #endif /* HAVE_YASM */ av_cold void ff_synth_filter_init_x86(SynthFilterContext *s) @@ -100,5 +103,8 @@ av_cold void ff_synth_filter_init_x86(SynthFilterContext *s) if (EXTERNAL_AVX(cpu_flags)) { s->synth_filter_float = synth_filter_avx; } + if (EXTERNAL_FMA3(cpu_flags)) { + s->synth_filter_float = synth_filter_fma3; + } #endif /* HAVE_YASM */ } -- cgit v1.2.3