Updated Visual C++ support
--HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40750
This commit is contained in:
parent
17c9e1dd06
commit
a12ff59652
2 changed files with 3 additions and 3 deletions
BIN
VisualC.zip
BIN
VisualC.zip
Binary file not shown.
|
@ -59,7 +59,7 @@ static __inline__ int CPU_haveCPUID()
|
|||
: "%eax", "%ecx"
|
||||
);
|
||||
#elif defined(_MSC_VER)
|
||||
__asm__ {
|
||||
__asm {
|
||||
pushfd ; Get original EFLAGS
|
||||
pop eax
|
||||
mov ecx, eax
|
||||
|
@ -102,7 +102,7 @@ static __inline__ int CPU_getCPUIDFeatures()
|
|||
: "%eax", "%ebx", "%ecx", "%edx"
|
||||
);
|
||||
#elif defined(_MSC_VER)
|
||||
__asm__ {
|
||||
__asm {
|
||||
xor eax, eax ; Set up for CPUID instruction
|
||||
cpuid ; Get and save vendor ID
|
||||
cmp eax, 1 ; Make sure 1 is valid input for CPUID
|
||||
|
@ -162,7 +162,7 @@ static __inline__ int CPU_have3DNow()
|
|||
: "%eax", "%ebx", "%ecx", "%edx"
|
||||
);
|
||||
#elif defined(_MSC_VER)
|
||||
__asm__ {
|
||||
__asm {
|
||||
mov eax,80000000h ; Query for extended functions
|
||||
cpuid ; Get extended function limit
|
||||
cmp eax,80000001h
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue