comparison src/cpuinfo/SDL_cpuinfo.c @ 784:a2dde6aff60e

*** empty log message ***
author Sam Lantinga <slouken@libsdl.org>
date Sat, 17 Jan 2004 20:37:06 +0000
parents 8ac3f46f9d09
children ca06a994f03c
comparison
equal deleted inserted replaced
783:13cab9289513 784:a2dde6aff60e
57 " xorl %%ecx,%%eax # Can not toggle ID bit, \n" 57 " xorl %%ecx,%%eax # Can not toggle ID bit, \n"
58 " jz 1f # Processor=80486 \n" 58 " jz 1f # Processor=80486 \n"
59 " movl $1,%0 # We have CPUID support \n" 59 " movl $1,%0 # We have CPUID support \n"
60 "1: \n" 60 "1: \n"
61 "pop %%ecx\n" 61 "pop %%ecx\n"
62 : "=r" (has_CPUID) 62 : "=m" (has_CPUID)
63 : 63 :
64 : "%eax", "%ecx" 64 : "%eax", "%ecx"
65 ); 65 );
66 #elif defined(_MSC_VER) 66 #elif defined(_MSC_VER)
67 __asm { 67 __asm {
100 " movl %%edx,%0 \n" 100 " movl %%edx,%0 \n"
101 "1: \n" 101 "1: \n"
102 "pop %%edx\n" 102 "pop %%edx\n"
103 "pop %%ecx\n" 103 "pop %%ecx\n"
104 "pop %%ebx\n" 104 "pop %%ebx\n"
105 : "=r" (features) 105 : "=m" (features)
106 : 106 :
107 : "%eax", "%ebx", "%ecx", "%edx" 107 : "%eax", "%ebx", "%ecx", "%edx"
108 ); 108 );
109 #elif defined(_MSC_VER) 109 #elif defined(_MSC_VER)
110 __asm { 110 __asm {
160 " movl $1,%0 # Yep, we have 3DNow! support! \n" 160 " movl $1,%0 # Yep, we have 3DNow! support! \n"
161 "1: \n" 161 "1: \n"
162 "pop %%edx\n" 162 "pop %%edx\n"
163 "pop %%ecx\n" 163 "pop %%ecx\n"
164 "pop %%ebx\n" 164 "pop %%ebx\n"
165 : "=r" (has_3DNow) 165 : "=m" (has_3DNow)
166 : 166 :
167 : "%eax", "%ebx", "%ecx", "%edx" 167 : "%eax", "%ebx", "%ecx", "%edx"
168 ); 168 );
169 #elif defined(_MSC_VER) 169 #elif defined(_MSC_VER)
170 __asm { 170 __asm {