aboutsummaryrefslogtreecommitdiffstats
path: root/libswresample/x86/resample_init.c
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2016-02-07 00:52:06 -0300
committerJames Almer <jamrial@gmail.com>2016-02-14 20:00:21 -0300
commit70d685a77f283b110e7b1ab565ff5de53f752d55 (patch)
treea1350e3534c7cc0858852ff6caf4e803af6b2367 /libswresample/x86/resample_init.c
parent73a4589d4b0d97cbd6f8bf8be18b78151b657898 (diff)
downloadffmpeg-70d685a77f283b110e7b1ab565ff5de53f752d55.tar.gz
x86: use the new helper macros where useful
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libswresample/x86/resample_init.c')
-rw-r--r--libswresample/x86/resample_init.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libswresample/x86/resample_init.c b/libswresample/x86/resample_init.c
index bc444cfb8b..9d7d5cf89e 100644
--- a/libswresample/x86/resample_init.c
+++ b/libswresample/x86/resample_init.c
@@ -71,7 +71,7 @@ av_cold void swri_resample_dsp_x86_init(ResampleContext *c)
c->dsp.resample = c->linear ? ff_resample_linear_float_avx
: ff_resample_common_float_avx;
}
- if (EXTERNAL_FMA3(mm_flags) && !(mm_flags & AV_CPU_FLAG_AVXSLOW)) {
+ if (EXTERNAL_FMA3_FAST(mm_flags)) {
c->dsp.resample = c->linear ? ff_resample_linear_float_fma3
: ff_resample_common_float_fma3;
}