comparison src/cpuinfo/SDL_cpuinfo.c @ 3321:714a352c8869

Fixed 32-bit build
author Sam Lantinga <slouken@libsdl.org>
date Sat, 26 Sep 2009 21:39:56 +0000
parents 8b01b0648f01
children 935f36ec1844
comparison
equal deleted inserted replaced
3320:b225c8a7896e 3321:714a352c8869
164 " movl %%edx,%0 \n" 164 " movl %%edx,%0 \n"
165 "1: \n" 165 "1: \n"
166 " movl %%edi,%%ebx\n" 166 " movl %%edi,%%ebx\n"
167 : "=m" (features) 167 : "=m" (features)
168 : 168 :
169 : "%eax", "%ebx", "%ecx", "%edx", "%edi" 169 : "%eax", "%ecx", "%edx", "%edi"
170 ); 170 );
171 #elif defined(__GNUC__) && defined(__x86_64__) 171 #elif defined(__GNUC__) && defined(__x86_64__)
172 __asm__ ( 172 __asm__ (
173 " movq %%rbx,%%rdi\n" 173 " movq %%rbx,%%rdi\n"
174 " xorl %%eax,%%eax # Set up for CPUID instruction \n" 174 " xorl %%eax,%%eax # Set up for CPUID instruction \n"
236 " movl %%edx,%0 \n" 236 " movl %%edx,%0 \n"
237 "1: \n" 237 "1: \n"
238 " movl %%edi,%%ebx\n" 238 " movl %%edi,%%ebx\n"
239 : "=m" (features) 239 : "=m" (features)
240 : 240 :
241 : "%eax", "%ebx", "%ecx", "%edx", "%edi" 241 : "%eax", "%ecx", "%edx", "%edi"
242 ); 242 );
243 #elif defined(__GNUC__) && defined (__x86_64__) 243 #elif defined(__GNUC__) && defined (__x86_64__)
244 __asm__ ( 244 __asm__ (
245 " movq %%rbx,%%rdi\n" 245 " movq %%rbx,%%rdi\n"
246 " movl $0x80000000,%%eax # Query for extended functions \n" 246 " movl $0x80000000,%%eax # Query for extended functions \n"