comparison src/cpuinfo/SDL_cpuinfo.c @ 786:e1e0a0a94570

*** empty log message ***
author Sam Lantinga <slouken@libsdl.org>
date Sat, 24 Jan 2004 05:57:56 +0000
parents ca06a994f03c
children 07760c8854d1
comparison
equal deleted inserted replaced
785:ca06a994f03c 786:e1e0a0a94570
236 SDL_CPUFeatures |= CPU_HAS_RDTSC; 236 SDL_CPUFeatures |= CPU_HAS_RDTSC;
237 } 237 }
238 if ( CPU_haveMMX() ) { 238 if ( CPU_haveMMX() ) {
239 SDL_CPUFeatures |= CPU_HAS_MMX; 239 SDL_CPUFeatures |= CPU_HAS_MMX;
240 } 240 }
241 if ( CPU_haveMMXExt() ) {
242 SDL_CPUFeatures |= CPU_HAS_MMXEXT;
243 }
241 if ( CPU_have3DNow() ) { 244 if ( CPU_have3DNow() ) {
242 SDL_CPUFeatures |= CPU_HAS_3DNOW; 245 SDL_CPUFeatures |= CPU_HAS_3DNOW;
243 } 246 }
247 if ( CPU_have3DNowExt() ) {
248 SDL_CPUFeatures |= CPU_HAS_3DNOWEXT;
249 }
244 if ( CPU_haveSSE() ) { 250 if ( CPU_haveSSE() ) {
245 SDL_CPUFeatures |= CPU_HAS_SSE; 251 SDL_CPUFeatures |= CPU_HAS_SSE;
246 } 252 }
253 if ( CPU_haveSSE2() ) {
254 SDL_CPUFeatures |= CPU_HAS_SSE2;
255 }
247 if ( CPU_haveAltiVec() ) { 256 if ( CPU_haveAltiVec() ) {
248 SDL_CPUFeatures |= CPU_HAS_ALTIVEC; 257 SDL_CPUFeatures |= CPU_HAS_ALTIVEC;
249 } 258 }
250 if ( CPU_haveMMXExt() ) {
251 SDL_CPUFeatures |= CPU_HAS_MMXEXT;
252 }
253 if ( CPU_have3DNowExt() ) {
254 SDL_CPUFeatures |= CPU_HAS_3DNOWEXT;
255 }
256 if ( CPU_haveSSE2() ) {
257 SDL_CPUFeatures |= CPU_HAS_SSE2;
258 }
259 } 259 }
260 return SDL_CPUFeatures; 260 return SDL_CPUFeatures;
261 } 261 }
262 262
263 SDL_bool SDL_HasRDTSC() 263 SDL_bool SDL_HasRDTSC()