comparison src/cpuinfo/SDL_cpuinfo.c @ 887:b4b64bb88f2f

Date: Mon, 10 May 2004 10:17:46 -0400 From: Mike Frysinger Subject: Re: [SDL] gcc-3.4.0 / PIC fix here's a combined patch (yours and the one i mentioned earlier) that i tested with gcc-3.4.0 and gcc-3.3.3
author Sam Lantinga <slouken@libsdl.org>
date Sun, 16 May 2004 17:19:48 +0000
parents 9eb85a211abd
children 51a8702d8ecd
comparison
equal deleted inserted replaced
886:05c551e5bc64 887:b4b64bb88f2f
136 " movl %%edx,%0 \n" 136 " movl %%edx,%0 \n"
137 "1: \n" 137 "1: \n"
138 " movl %%edi,%%ebx\n" 138 " movl %%edi,%%ebx\n"
139 : "=m" (features) 139 : "=m" (features)
140 : 140 :
141 : "%eax", "%ebx", "%ecx", "%edx", "%edi" 141 : "%eax", "%ecx", "%edx", "%edi"
142 ); 142 );
143 #elif defined(_MSC_VER) 143 #elif defined(_MSC_VER)
144 __asm { 144 __asm {
145 xor eax, eax ; Set up for CPUID instruction 145 xor eax, eax ; Set up for CPUID instruction
146 cpuid ; Get and save vendor ID 146 cpuid ; Get and save vendor ID
171 " movl %%edx,%0 \n" 171 " movl %%edx,%0 \n"
172 "1: \n" 172 "1: \n"
173 " movl %%edi,%%ebx\n" 173 " movl %%edi,%%ebx\n"
174 : "=m" (features) 174 : "=m" (features)
175 : 175 :
176 : "%eax", "%ebx", "%ecx", "%edx", "%edi" 176 : "%eax", "%ecx", "%edx", "%edi"
177 ); 177 );
178 #elif defined(_MSC_VER) 178 #elif defined(_MSC_VER)
179 __asm { 179 __asm {
180 mov eax,80000000h ; Query for extended functions 180 mov eax,80000000h ; Query for extended functions
181 cpuid ; Get extended function limit 181 cpuid ; Get extended function limit