aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRamiro Polla <ramiro.polla@gmail.com>2009-01-07 23:38:54 +0000
committerRamiro Polla <ramiro.polla@gmail.com>2009-01-07 23:38:54 +0000
commit1bb04d5a441ee1eb1f1fb6d2ebb5e0b849fc337b (patch)
tree45b0b5864dab94bea7b8e9854e75851321809a58
parent6fde7afa8d085f6555911e3e45d918e26cdf2e96 (diff)
downloadffmpeg-1bb04d5a441ee1eb1f1fb6d2ebb5e0b849fc337b.tar.gz
configure: allow to disable sse code.
Based on patch by Michael Kostylev <mik at it-1 dot ru> Originally committed as revision 16490 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rwxr-xr-xconfigure6
-rw-r--r--libavcodec/x86/cpuid.c2
2 files changed, 6 insertions, 2 deletions
diff --git a/configure b/configure
index fe20844a51..56606aaae6 100755
--- a/configure
+++ b/configure
@@ -141,6 +141,7 @@ show_help(){
echo " --disable-altivec disable AltiVec optimizations"
echo " --disable-mmx disable MMX optimizations"
echo " --disable-mmx2 disable MMX2 optimizations"
+ echo " --disable-sse disable SSE optimizations"
echo " --disable-ssse3 disable SSSE3 optimizations"
echo " --disable-armv5te disable armv5te optimizations"
echo " --disable-armv6 disable armv6 optimizations"
@@ -820,6 +821,7 @@ ARCH_EXT_LIST='
mmx
mmx2
neon
+ sse
ssse3
vis
'
@@ -946,7 +948,8 @@ mmi_deps="mips"
mmx_deps="x86"
mmx2_deps="x86 mmx"
neon_deps="arm"
-ssse3_deps="x86"
+sse_deps="mmx"
+ssse3_deps="x86 sse"
vis_deps="sparc"
# common features
@@ -2136,6 +2139,7 @@ echo "big-endian ${bigendian-no}"
if test $arch = "x86_32" -o $arch = "x86_64"; then
echo "yasm ${yasm-no}"
echo "MMX enabled ${mmx-no}"
+ echo "SSE enabled ${sse-no}"
echo "CMOV enabled ${cmov-no}"
echo "CMOV is fast ${fast_cmov-no}"
echo "EBX available ${ebx_available-no}"
diff --git a/libavcodec/x86/cpuid.c b/libavcodec/x86/cpuid.c
index cd33334ecf..664bac35ab 100644
--- a/libavcodec/x86/cpuid.c
+++ b/libavcodec/x86/cpuid.c
@@ -83,7 +83,7 @@ int mm_support(void)
rval |= FF_MM_MMX;
if (std_caps & (1<<25))
rval |= FF_MM_MMXEXT
-#if !defined(__GNUC__) || __GNUC__ > 2
+#ifdef HAVE_SSE
| FF_MM_SSE;
if (std_caps & (1<<26))
rval |= FF_MM_SSE2;