# HG changeset patch # User Sam Lantinga # Date 1076427095 0 # Node ID b2fda076b02e7f996ec3f6fe64ef02bc8c79e69e # Parent 355632dca9289e7ac8579e4610ebeabc5ae091e8 *** empty log message *** diff -r 355632dca928 -r b2fda076b02e src/cpuinfo/SDL_cpuinfo.c --- a/src/cpuinfo/SDL_cpuinfo.c Tue Feb 10 15:15:40 2004 +0000 +++ b/src/cpuinfo/SDL_cpuinfo.c Tue Feb 10 15:31:35 2004 +0000 @@ -301,6 +301,14 @@ return SDL_FALSE; } +SDL_bool SDL_HasMMXExt() +{ + if ( SDL_GetCPUFeatures() & CPU_HAS_MMXEXT ) { + return SDL_TRUE; + } + return SDL_FALSE; +} + SDL_bool SDL_Has3DNow() { if ( SDL_GetCPUFeatures() & CPU_HAS_3DNOW ) { @@ -309,6 +317,14 @@ return SDL_FALSE; } +SDL_bool SDL_Has3DNowExt() +{ + if ( SDL_GetCPUFeatures() & CPU_HAS_3DNOWEXT ) { + return SDL_TRUE; + } + return SDL_FALSE; +} + SDL_bool SDL_HasSSE() { if ( SDL_GetCPUFeatures() & CPU_HAS_SSE ) { @@ -317,6 +333,14 @@ return SDL_FALSE; } +SDL_bool SDL_HasSSE2() +{ + if ( SDL_GetCPUFeatures() & CPU_HAS_SSE2 ) { + return SDL_TRUE; + } + return SDL_FALSE; +} + SDL_bool SDL_HasAltiVec() { if ( SDL_GetCPUFeatures() & CPU_HAS_ALTIVEC ) { @@ -325,30 +349,6 @@ return SDL_FALSE; } -SDL_bool SDL_HasMMXExt() -{ - if ( SDL_GetCPUFeatures() & CPU_HAS_MMXEXT ) { - return SDL_TRUE; - } - return SDL_FALSE; -} - -SDL_bool SDL_Has3DNowExt() -{ - if ( SDL_GetCPUFeatures() & CPU_HAS_3DNOWEXT ) { - return SDL_TRUE; - } - return SDL_FALSE; -} - -SDL_bool SDL_HasSSE2() -{ - if ( SDL_GetCPUFeatures() & CPU_HAS_SSE2 ) { - return SDL_TRUE; - } - return SDL_FALSE; -} - #ifdef TEST_MAIN #include