Mercurial > sdl-ios-xcode
comparison src/cpuinfo/SDL_cpuinfo.c @ 804:b2fda076b02e
*** empty log message ***
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Tue, 10 Feb 2004 15:31:35 +0000 |
parents | dec19b813b04 |
children | 9eb85a211abd |
comparison
equal
deleted
inserted
replaced
803:355632dca928 | 804:b2fda076b02e |
---|---|
299 return SDL_TRUE; | 299 return SDL_TRUE; |
300 } | 300 } |
301 return SDL_FALSE; | 301 return SDL_FALSE; |
302 } | 302 } |
303 | 303 |
304 SDL_bool SDL_HasMMXExt() | |
305 { | |
306 if ( SDL_GetCPUFeatures() & CPU_HAS_MMXEXT ) { | |
307 return SDL_TRUE; | |
308 } | |
309 return SDL_FALSE; | |
310 } | |
311 | |
304 SDL_bool SDL_Has3DNow() | 312 SDL_bool SDL_Has3DNow() |
305 { | 313 { |
306 if ( SDL_GetCPUFeatures() & CPU_HAS_3DNOW ) { | 314 if ( SDL_GetCPUFeatures() & CPU_HAS_3DNOW ) { |
307 return SDL_TRUE; | 315 return SDL_TRUE; |
308 } | 316 } |
309 return SDL_FALSE; | 317 return SDL_FALSE; |
310 } | 318 } |
311 | 319 |
320 SDL_bool SDL_Has3DNowExt() | |
321 { | |
322 if ( SDL_GetCPUFeatures() & CPU_HAS_3DNOWEXT ) { | |
323 return SDL_TRUE; | |
324 } | |
325 return SDL_FALSE; | |
326 } | |
327 | |
312 SDL_bool SDL_HasSSE() | 328 SDL_bool SDL_HasSSE() |
313 { | 329 { |
314 if ( SDL_GetCPUFeatures() & CPU_HAS_SSE ) { | 330 if ( SDL_GetCPUFeatures() & CPU_HAS_SSE ) { |
315 return SDL_TRUE; | 331 return SDL_TRUE; |
316 } | 332 } |
317 return SDL_FALSE; | 333 return SDL_FALSE; |
318 } | 334 } |
319 | 335 |
336 SDL_bool SDL_HasSSE2() | |
337 { | |
338 if ( SDL_GetCPUFeatures() & CPU_HAS_SSE2 ) { | |
339 return SDL_TRUE; | |
340 } | |
341 return SDL_FALSE; | |
342 } | |
343 | |
320 SDL_bool SDL_HasAltiVec() | 344 SDL_bool SDL_HasAltiVec() |
321 { | 345 { |
322 if ( SDL_GetCPUFeatures() & CPU_HAS_ALTIVEC ) { | 346 if ( SDL_GetCPUFeatures() & CPU_HAS_ALTIVEC ) { |
323 return SDL_TRUE; | 347 return SDL_TRUE; |
324 } | 348 } |
325 return SDL_FALSE; | 349 return SDL_FALSE; |
326 } | |
327 | |
328 SDL_bool SDL_HasMMXExt() | |
329 { | |
330 if ( SDL_GetCPUFeatures() & CPU_HAS_MMXEXT ) { | |
331 return SDL_TRUE; | |
332 } | |
333 return SDL_FALSE; | |
334 } | |
335 | |
336 SDL_bool SDL_Has3DNowExt() | |
337 { | |
338 if ( SDL_GetCPUFeatures() & CPU_HAS_3DNOWEXT ) { | |
339 return SDL_TRUE; | |
340 } | |
341 return SDL_FALSE; | |
342 } | |
343 | |
344 SDL_bool SDL_HasSSE2() | |
345 { | |
346 if ( SDL_GetCPUFeatures() & CPU_HAS_SSE2 ) { | |
347 return SDL_TRUE; | |
348 } | |
349 return SDL_FALSE; | |
350 } | 350 } |
351 | 351 |
352 #ifdef TEST_MAIN | 352 #ifdef TEST_MAIN |
353 | 353 |
354 #include <stdio.h> | 354 #include <stdio.h> |