aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/x86/dsputilenc_mmx.c
diff options
context:
space:
mode:
authorRonald S. Bultje <rsbultje@gmail.com>2010-07-19 22:38:23 +0000
committerRonald S. Bultje <rsbultje@gmail.com>2010-07-19 22:38:23 +0000
commit6526976f0cbb3fa152797b3a15bd634ad14cabe3 (patch)
treee4c61c62e99aa4d99b3e1adb67cde6a227a18dc1 /libavcodec/x86/dsputilenc_mmx.c
parent1878f685c0f69d1bf0acc78c5fc09dae03ac48d5 (diff)
downloadffmpeg-6526976f0cbb3fa152797b3a15bd634ad14cabe3.tar.gz
Remove FF_MM_SSE2/3 flags for CPUs where this is generally not faster than
regular MMX code. Examples of this are the Core1 CPU. Instead, set a new flag, FF_MM_SSE2/3SLOW, which can be checked for particular SSE2/3 functions that have been checked specifically on such CPUs and are actually faster than their MMX counterparts. In addition, use this flag to enable particular VP8 and LPC SSE2 functions that are faster than their MMX counterparts. Based on a patch by Loren Merritt <lorenm AT u washington edu>. Originally committed as revision 24340 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/x86/dsputilenc_mmx.c')
-rw-r--r--libavcodec/x86/dsputilenc_mmx.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libavcodec/x86/dsputilenc_mmx.c b/libavcodec/x86/dsputilenc_mmx.c
index f491111ca5..d3e412a3dc 100644
--- a/libavcodec/x86/dsputilenc_mmx.c
+++ b/libavcodec/x86/dsputilenc_mmx.c
@@ -1409,9 +1409,10 @@ void dsputilenc_init_mmx(DSPContext* c, AVCodecContext *avctx)
c->sum_abs_dctelem= sum_abs_dctelem_sse2;
c->hadamard8_diff[0]= hadamard8_diff16_sse2;
c->hadamard8_diff[1]= hadamard8_diff_sse2;
-#if CONFIG_LPC
+ }
+
+ if (CONFIG_LPC && mm_flags & (FF_MM_SSE2|FF_MM_SSE2SLOW)) {
c->lpc_compute_autocorr = ff_lpc_compute_autocorr_sse2;
-#endif
}
#if HAVE_SSSE3