Fix a false-negative in MMX check
authorJeremy Huddleston <jeremyhu@apple.com>
Wed, 14 Mar 2012 17:26:18 +0000 (10:26 -0700)
committerJeremy Huddleston <jeremyhu@apple.com>
Thu, 15 Mar 2012 02:10:22 +0000 (19:10 -0700)
Silence warnings that could make -Werror give a false negative
Use signed char to avoid cases where int8_t isn't declared

Reported-by: Mike Lothian <mike@fireburn.co.uk>
Tested-by: Mike Lothian <mike@fireburn.co.uk>
Reviewed-by: Matt Turner <mattst88@gmail.com>
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
configure.ac

index a920be2..d51f904 100644 (file)
@@ -298,12 +298,12 @@ AC_COMPILE_IFELSE([AC_LANG_SOURCE([[
 int main () {
     __m64 v = _mm_cvtsi32_si64 (1);
     __m64 w;
-    int8_t x;
+    signed char x = 0;
 
     /* Some versions of clang will choke on K */
     asm ("pshufw %2, %1, %0\n\t"
-        : "=y" (v)
-        : "y" (w), "K" (x)
+        : "=y" (w)
+        : "y" (v), "K" (x)
     );
 
     return _mm_cvtsi64_si32 (v);