Skip to content

Commit

Permalink
Updated Visual C++ support
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Nov 24, 2003
1 parent 40eb18f commit 8c9ec1d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Binary file modified VisualC.zip
Binary file not shown.
6 changes: 3 additions & 3 deletions src/cpuinfo/SDL_cpuinfo.c
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 8c9ec1d

Please sign in to comment.