Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Xiph.Org
aom-rav1e
Commits
f345da52
Commit
f345da52
authored
Nov 23, 2013
by
Paul Wilkins
Committed by
Gerrit Code Review
Nov 23, 2013
Browse files
Merge "Added cpuid compatibility for older MSVC versions"
parents
520aa705
8caeeb88
Changes
1
Hide whitespace changes
Inline
Side-by-side
vpx_ports/x86.h
View file @
f345da52
...
...
@@ -71,6 +71,7 @@ typedef enum {
#endif
#else
/* end __SUNPRO__ */
#if ARCH_X86_64
#if defined(_MSC_VER) && _MSC_VER > 1500
void
__cpuidex
(
int
CPUInfo
[
4
],
int
info_type
,
int
ecxvalue
);
#pragma intrinsic(__cpuidex)
#define cpuid(func, func2, a, b, c, d) do {\
...
...
@@ -79,6 +80,15 @@ void __cpuidex(int CPUInfo[4], int info_type, int ecxvalue);
a = regs[0]; b = regs[1]; c = regs[2]; d = regs[3];\
} while(0)
#else
void
__cpuid
(
int
CPUInfo
[
4
],
int
info_type
);
#pragma intrinsic(__cpuid)
#define cpuid(func, func2, a, b, c, d) do {\
int regs[4];\
__cpuid(regs, func); \
a = regs[0]; b = regs[1]; c = regs[2]; d = regs[3];\
} while (0)
#endif
#else
#define cpuid(func, func2, a, b, c, d)\
__asm mov eax, func\
__asm mov ecx, func2\
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment