shithub: libvpx

Download patch

ref: 16ad35f64ec884cd87d29549b4eed48a8e5c191f
parent: a64a192c90e45aafe77f02c84930a9495ac04c3b
parent: 36dfb90c5345985ea687f27c55041e9f22d3df78
author: Yaowu Xu <[email protected]>
date: Fri Nov 22 05:03:51 EST 2013

Merge "Fix the cpuid macro for x86_64 non-gcc build"

--- a/vpx_ports/x86.h
+++ b/vpx_ports/x86.h
@@ -71,11 +71,11 @@
 #endif
 #else /* end __SUNPRO__ */
 #if ARCH_X86_64
-void __cpuid(int CPUInfo[4], int info_type);
-#pragma intrinsic(__cpuid)
+void __cpuidex(int CPUInfo[4], int info_type, int ecxvalue);
+#pragma intrinsic(__cpuidex)
 #define cpuid(func, func2, a, b, c, d) do {\
     int regs[4];\
-    __cpuid(regs, func, func2);
+    __cpuidex(regs, func, func2); \
     a = regs[0];  b = regs[1];  c = regs[2];  d = regs[3];\
   } while(0)
 #else