[vlc-devel] commit: Made CAN_COMPILE_SSE3/SSSE3/SSE4 meaning consistant with SSE/SSE2. (Laurent Aimar )

git version control git at videolan.org
Tue Nov 24 19:53:56 CET 2009


vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Mon Nov 23 19:55:43 2009 +0100| [7d80f76b148307fc1c9ecf53977fddbc82481071] | committer: Laurent Aimar 

Made CAN_COMPILE_SSE3/SSSE3/SSE4 meaning consistant with SSE/SSE2.

 They now all mean that inline assembly (asm volatile (:::) for a specific
instruction set can be used.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=7d80f76b148307fc1c9ecf53977fddbc82481071
---

 configure.ac |   19 ++++++-------------
 1 files changed, 6 insertions(+), 13 deletions(-)

diff --git a/configure.ac b/configure.ac
index 875fc96..cbe1174 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1472,23 +1472,18 @@ AS_IF([test "${enable_sse}" != "no"], [
   # SSE3
   AC_CACHE_CHECK([if $CC groks SSE3 inline assembly],
     [ac_cv_sse3_inline],
-    [CFLAGS="${CFLAGS_save} -O -msse3"
+    [CFLAGS="${CFLAGS_save}"
      AC_TRY_COMPILE(,[void *p;asm volatile("movsldup %%xmm1,%%xmm0"::"r"(p));],
-                    ac_cv_sse3_inline=yes, ac_cv_sse3_inline=no)
-     ARCH="${ARCH} sse3"
-  ])
+                    ac_cv_sse3_inline=yes, ac_cv_sse3_inline=no)])
   AS_IF([test "${ac_cv_sse3_inline}" != "no"], [
     AC_DEFINE(CAN_COMPILE_SSE3, 1,
               [Define to 1 if SSE3 inline assembly is available.]) ])
   # SSSE3
   AC_CACHE_CHECK([if $CC groks SSSE3 inline assembly],
     [ac_cv_ssse3_inline],
-    [CFLAGS="${CFLAGS_save} -O -mssse3"
+    [CFLAGS="${CFLAGS_save}"
      AC_TRY_COMPILE(,[void *p;asm volatile("pabsw %%xmm0,%%xmm0"::"r"(p));],
-                    ac_cv_ssse3_inline=yes, ac_cv_ssse3_inline=no)
-     ARCH="${ARCH} ssse3"
-  ])
-
+                    ac_cv_ssse3_inline=yes, ac_cv_ssse3_inline=no)])
   AS_IF([test "${ac_cv_ssse3_inline}" != "no"], [
     AC_DEFINE(CAN_COMPILE_SSSE3, 1,
               [Define to 1 if SSSE3 inline assembly is available.]) ])
@@ -1496,11 +1491,9 @@ AS_IF([test "${enable_sse}" != "no"], [
   # SSE4
   AC_CACHE_CHECK([if $CC groks SSE4 inline assembly],
     [ac_cv_sse4_inline],
-    [CFLAGS="${CFLAGS_save} -O -msse4"
+    [CFLAGS="${CFLAGS_save}"
      AC_TRY_COMPILE(,[void *p;asm volatile("pmaxsb %%xmm1,%%xmm0"::"r"(p));],
-                    ac_cv_sse4_inline=yes, ac_cv_sse4_inline=no)
-     ARCH="${ARCH} sse4"
-  ])
+                    ac_cv_sse4_inline=yes, ac_cv_sse4_inline=no)])
   AS_IF([test "${ac_cv_sse4_inline}" != "no"], [
     AC_DEFINE(CAN_COMPILE_SSE4, 1,
               [Define to 1 if SSE4 inline assembly is available.]) ])




More information about the vlc-devel mailing list