Mercurial > sdl-ios-xcode
diff src/cpuinfo/SDL_cpuinfo.c @ 749:06cdd106d61c
Updated Visual C++ support
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Mon, 24 Nov 2003 19:58:29 +0000 |
parents | da36f59485da |
children | b8d311d90021 |
line wrap: on
line diff
--- a/src/cpuinfo/SDL_cpuinfo.c Mon Nov 24 09:30:40 2003 +0000 +++ b/src/cpuinfo/SDL_cpuinfo.c Mon Nov 24 19:58:29 2003 +0000 @@ -59,7 +59,7 @@ : "%eax", "%ecx" ); #elif defined(_MSC_VER) - __asm__ { + __asm { pushfd ; Get original EFLAGS pop eax mov ecx, eax @@ -102,7 +102,7 @@ : "%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 @@ : "%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