Updated Visual C++ support

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40750
This commit is contained in:
Sam Lantinga 2003-11-24 19:58:29 +00:00
parent 17c9e1dd06
commit a12ff59652
2 changed files with 3 additions and 3 deletions

Binary file not shown.

View File

@ -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