diff src/cpuinfo/SDL_cpuinfo.c @ 1152:51a8702d8ecd

Updates to PocketPC (WinCE) support, thanks to Dmitry Yakimov at activekitten.com.
author Ryan C. Gordon <icculus@icculus.org>
date Thu, 29 Sep 2005 09:43:00 +0000
parents b4b64bb88f2f
children b616ac4f39d1
line wrap: on
line diff
--- a/src/cpuinfo/SDL_cpuinfo.c	Wed Sep 28 11:36:20 2005 +0000
+++ b/src/cpuinfo/SDL_cpuinfo.c	Thu Sep 29 09:43:00 2005 +0000
@@ -101,7 +101,7 @@
 	:
 	: "%rax", "%rcx"
 	);
-#elif defined(_MSC_VER)
+#elif defined(_MSC_VER) && (defined(_M_IX86) || defined(_X86_))
 	__asm {
         pushfd                      ; Get original EFLAGS
         pop     eax
@@ -140,7 +140,7 @@
 	:
 	: "%eax", "%ecx", "%edx", "%edi"
 	);
-#elif defined(_MSC_VER)
+#elif defined(_MSC_VER)  && (defined(_M_IX86) || defined(_X86_))
 	__asm {
         xor     eax, eax            ; Set up for CPUID instruction
         cpuid                       ; Get and save vendor ID
@@ -175,7 +175,7 @@
 	:
 	: "%eax", "%ecx", "%edx", "%edi"
 	);
-#elif defined(_MSC_VER)
+#elif defined(_MSC_VER)  && (defined(_M_IX86) || defined(_X86_))
 	__asm {
         mov     eax,80000000h       ; Query for extended functions
         cpuid                       ; Get extended function limit