src/cpuinfo/SDL_cpuinfo.c
changeset 1152 51a8702d8ecd
parent 887 b4b64bb88f2f
child 1198 b616ac4f39d1
     1.1 --- a/src/cpuinfo/SDL_cpuinfo.c	Wed Sep 28 11:36:20 2005 +0000
     1.2 +++ b/src/cpuinfo/SDL_cpuinfo.c	Thu Sep 29 09:43:00 2005 +0000
     1.3 @@ -101,7 +101,7 @@
     1.4  	:
     1.5  	: "%rax", "%rcx"
     1.6  	);
     1.7 -#elif defined(_MSC_VER)
     1.8 +#elif defined(_MSC_VER) && (defined(_M_IX86) || defined(_X86_))
     1.9  	__asm {
    1.10          pushfd                      ; Get original EFLAGS
    1.11          pop     eax
    1.12 @@ -140,7 +140,7 @@
    1.13  	:
    1.14  	: "%eax", "%ecx", "%edx", "%edi"
    1.15  	);
    1.16 -#elif defined(_MSC_VER)
    1.17 +#elif defined(_MSC_VER)  && (defined(_M_IX86) || defined(_X86_))
    1.18  	__asm {
    1.19          xor     eax, eax            ; Set up for CPUID instruction
    1.20          cpuid                       ; Get and save vendor ID
    1.21 @@ -175,7 +175,7 @@
    1.22  	:
    1.23  	: "%eax", "%ecx", "%edx", "%edi"
    1.24  	);
    1.25 -#elif defined(_MSC_VER)
    1.26 +#elif defined(_MSC_VER)  && (defined(_M_IX86) || defined(_X86_))
    1.27  	__asm {
    1.28          mov     eax,80000000h       ; Query for extended functions
    1.29          cpuid                       ; Get extended function limit