Remove FF_MM_SSE2/3 flags for CPUs where this is generally not faster than
authorRonald S. Bultje <rsbultje@gmail.com>
Mon, 19 Jul 2010 22:38:23 +0000 (22:38 +0000)
committerRonald S. Bultje <rsbultje@gmail.com>
Mon, 19 Jul 2010 22:38:23 +0000 (22:38 +0000)
commit6526976f0cbb3fa152797b3a15bd634ad14cabe3
treee4c61c62e99aa4d99b3e1adb67cde6a227a18dc1
parent1878f685c0f69d1bf0acc78c5fc09dae03ac48d5
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
libavcodec/avcodec.h
libavcodec/x86/cpuid.c
libavcodec/x86/dsputilenc_mmx.c
libavcodec/x86/vp8dsp-init.c