Commit cb0f7cc0 authored by ramiro's avatar ramiro

configure: allow to disable sse code.

Based on patch by Michael Kostylev <mik at it-1 dot ru>

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@16490 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent f4dab51a
...@@ -141,6 +141,7 @@ show_help(){ ...@@ -141,6 +141,7 @@ show_help(){
echo " --disable-altivec disable AltiVec optimizations" echo " --disable-altivec disable AltiVec optimizations"
echo " --disable-mmx disable MMX optimizations" echo " --disable-mmx disable MMX optimizations"
echo " --disable-mmx2 disable MMX2 optimizations" echo " --disable-mmx2 disable MMX2 optimizations"
echo " --disable-sse disable SSE optimizations"
echo " --disable-ssse3 disable SSSE3 optimizations" echo " --disable-ssse3 disable SSSE3 optimizations"
echo " --disable-armv5te disable armv5te optimizations" echo " --disable-armv5te disable armv5te optimizations"
echo " --disable-armv6 disable armv6 optimizations" echo " --disable-armv6 disable armv6 optimizations"
...@@ -820,6 +821,7 @@ ARCH_EXT_LIST=' ...@@ -820,6 +821,7 @@ ARCH_EXT_LIST='
mmx mmx
mmx2 mmx2
neon neon
sse
ssse3 ssse3
vis vis
' '
...@@ -946,7 +948,8 @@ mmi_deps="mips" ...@@ -946,7 +948,8 @@ mmi_deps="mips"
mmx_deps="x86" mmx_deps="x86"
mmx2_deps="x86 mmx" mmx2_deps="x86 mmx"
neon_deps="arm" neon_deps="arm"
ssse3_deps="x86" sse_deps="mmx"
ssse3_deps="x86 sse"
vis_deps="sparc" vis_deps="sparc"
# common features # common features
...@@ -2136,6 +2139,7 @@ echo "big-endian ${bigendian-no}" ...@@ -2136,6 +2139,7 @@ echo "big-endian ${bigendian-no}"
if test $arch = "x86_32" -o $arch = "x86_64"; then if test $arch = "x86_32" -o $arch = "x86_64"; then
echo "yasm ${yasm-no}" echo "yasm ${yasm-no}"
echo "MMX enabled ${mmx-no}" echo "MMX enabled ${mmx-no}"
echo "SSE enabled ${sse-no}"
echo "CMOV enabled ${cmov-no}" echo "CMOV enabled ${cmov-no}"
echo "CMOV is fast ${fast_cmov-no}" echo "CMOV is fast ${fast_cmov-no}"
echo "EBX available ${ebx_available-no}" echo "EBX available ${ebx_available-no}"
......
...@@ -83,7 +83,7 @@ int mm_support(void) ...@@ -83,7 +83,7 @@ int mm_support(void)
rval |= FF_MM_MMX; rval |= FF_MM_MMX;
if (std_caps & (1<<25)) if (std_caps & (1<<25))
rval |= FF_MM_MMXEXT rval |= FF_MM_MMXEXT
#if !defined(__GNUC__) || __GNUC__ > 2 #ifdef HAVE_SSE
| FF_MM_SSE; | FF_MM_SSE;
if (std_caps & (1<<26)) if (std_caps & (1<<26))
rval |= FF_MM_SSE2; rval |= FF_MM_SSE2;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment