[FFmpeg-cvslog] r16490 - in trunk: configure libavcodec/x86/cpuid.c

ramiro subversion
Thu Jan 8 00:38:54 CET 2009


Author: ramiro
Date: Thu Jan  8 00:38:54 2009
New Revision: 16490

Log:
configure: allow to disable sse code.
Based on patch by Michael Kostylev <mik at it-1 dot ru>

Modified:
   trunk/configure
   trunk/libavcodec/x86/cpuid.c

Modified: trunk/configure
==============================================================================
--- trunk/configure	Thu Jan  8 00:37:03 2009	(r16489)
+++ trunk/configure	Thu Jan  8 00:38:54 2009	(r16490)
@@ -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                ${bigend
 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}"

Modified: trunk/libavcodec/x86/cpuid.c
==============================================================================
--- trunk/libavcodec/x86/cpuid.c	Thu Jan  8 00:37:03 2009	(r16489)
+++ trunk/libavcodec/x86/cpuid.c	Thu Jan  8 00:38:54 2009	(r16490)
@@ -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;




More information about the ffmpeg-cvslog mailing list