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
pull/126/head
Ramiro Polla 16 years ago
parent 6fde7afa8d
commit 1bb04d5a44
  1. 6
      configure
  2. 2
      libavcodec/x86/cpuid.c

6
configure vendored

@ -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}"

@ -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;

Loading…
Cancel
Save