Add CPU detection for VC++ x64
authorMakoto Kato <m_kato@ga2.so-net.ne.jp>
Tue, 1 Sep 2009 01:59:05 +0000 (10:59 +0900)
committerSøren Sandmann Pedersen <ssp@dhcp-100-3-19.bos.redhat.com>
Wed, 2 Sep 2009 19:00:46 +0000 (15:00 -0400)
VC++ x64 has no inline assembler and x64 mode supports SSE2.
So, it is unnecessary to call cpuid.

pixman/pixman-cpu.c

index a2a7b8a..5d5469b 100644 (file)
@@ -325,7 +325,7 @@ pixman_have_arm_neon (void)
  * that would lead to SIGILL instructions on old CPUs that don't have
  * it.
  */
-#if !defined(__amd64__) && !defined(__x86_64__)
+#if !defined(__amd64__) && !defined(__x86_64__) && !defined(_M_AMD64)
 
 #ifdef HAVE_GETISAX
 #include <sys/auxv.h>