aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/x86/fft.c
diff options
context:
space:
mode:
authorVitor Sessak <vitor1001@gmail.com>2011-07-30 18:39:25 +0200
committerRonald S. Bultje <rsbultje@gmail.com>2011-08-02 10:17:29 -0700
commit18b131de0473a3110c63966cd7c6cd2ab118d401 (patch)
tree822a1fd96cdd780477b3a22622b72a9245735e97 /libavcodec/x86/fft.c
parent6f7fe4723b9bfbb52341568906e6168966f486b3 (diff)
downloadffmpeg-18b131de0473a3110c63966cd7c6cd2ab118d401.tar.gz
dct32: Add SSE2 ASM optimizations
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
Diffstat (limited to 'libavcodec/x86/fft.c')
-rw-r--r--libavcodec/x86/fft.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/x86/fft.c b/libavcodec/x86/fft.c
index 899f0f7ad5..f7308cca32 100644
--- a/libavcodec/x86/fft.c
+++ b/libavcodec/x86/fft.c
@@ -60,6 +60,8 @@ av_cold void ff_dct_init_mmx(DCTContext *s)
int has_vectors = av_get_cpu_flags();
if (has_vectors & AV_CPU_FLAG_AVX && HAVE_AVX)
s->dct32 = ff_dct32_float_avx;
+ else if (has_vectors & AV_CPU_FLAG_SSE2 && HAVE_SSE)
+ s->dct32 = ff_dct32_float_sse2;
else if (has_vectors & AV_CPU_FLAG_SSE && HAVE_SSE)
s->dct32 = ff_dct32_float_sse;
#endif