diff options
author | Yaowu Xu <yaowu@google.com> | 2013-11-21 17:39:33 -0800 |
---|---|---|
committer | Yaowu Xu <yaowu@google.com> | 2013-11-21 18:02:20 -0800 |
commit | 36dfb90c5345985ea687f27c55041e9f22d3df78 (patch) | |
tree | 582e782b16feac4d260befa69c29dcced0256d35 | |
parent | 5925ba08a33cafceb0a2d21ca6d30923dc58f372 (diff) | |
download | libvpx-36dfb90c5345985ea687f27c55041e9f22d3df78.tar libvpx-36dfb90c5345985ea687f27c55041e9f22d3df78.tar.gz libvpx-36dfb90c5345985ea687f27c55041e9f22d3df78.tar.bz2 libvpx-36dfb90c5345985ea687f27c55041e9f22d3df78.zip |
Fix the cpuid macro for x86_64 non-gcc build
Change-Id: I0c44800db10db8d74c1ddfe89abecfd1c53d0f8d
-rw-r--r-- | vpx_ports/x86.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/vpx_ports/x86.h b/vpx_ports/x86.h index 344a5739b..e5e97e706 100644 --- a/vpx_ports/x86.h +++ b/vpx_ports/x86.h @@ -71,11 +71,11 @@ typedef enum { #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 |