From 82a8cf29b991e85c1d21222a1dfa9fca0ff5c596 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Tue, 10 Feb 2004 15:31:35 +0000 Subject: [PATCH] *** empty log message *** --- src/cpuinfo/SDL_cpuinfo.c | 42 +++++++++++++++++++-------------------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/src/cpuinfo/SDL_cpuinfo.c b/src/cpuinfo/SDL_cpuinfo.c index 6fd7a698a..246bcdba8 100644 --- a/src/cpuinfo/SDL_cpuinfo.c +++ b/src/cpuinfo/SDL_cpuinfo.c @@ -301,52 +301,52 @@ SDL_bool SDL_HasMMX() return SDL_FALSE; } -SDL_bool SDL_Has3DNow() +SDL_bool SDL_HasMMXExt() { - if ( SDL_GetCPUFeatures() & CPU_HAS_3DNOW ) { + if ( SDL_GetCPUFeatures() & CPU_HAS_MMXEXT ) { return SDL_TRUE; } return SDL_FALSE; } -SDL_bool SDL_HasSSE() +SDL_bool SDL_Has3DNow() { - if ( SDL_GetCPUFeatures() & CPU_HAS_SSE ) { + if ( SDL_GetCPUFeatures() & CPU_HAS_3DNOW ) { return SDL_TRUE; } return SDL_FALSE; } -SDL_bool SDL_HasAltiVec() +SDL_bool SDL_Has3DNowExt() { - if ( SDL_GetCPUFeatures() & CPU_HAS_ALTIVEC ) { + if ( SDL_GetCPUFeatures() & CPU_HAS_3DNOWEXT ) { return SDL_TRUE; } return SDL_FALSE; } -SDL_bool SDL_HasMMXExt() +SDL_bool SDL_HasSSE() { - if ( SDL_GetCPUFeatures() & CPU_HAS_MMXEXT ) { - return SDL_TRUE; - } - return SDL_FALSE; + if ( SDL_GetCPUFeatures() & CPU_HAS_SSE ) { + return SDL_TRUE; + } + return SDL_FALSE; } -SDL_bool SDL_Has3DNowExt() +SDL_bool SDL_HasSSE2() { - if ( SDL_GetCPUFeatures() & CPU_HAS_3DNOWEXT ) { - return SDL_TRUE; - } - return SDL_FALSE; + if ( SDL_GetCPUFeatures() & CPU_HAS_SSE2 ) { + return SDL_TRUE; + } + return SDL_FALSE; } -SDL_bool SDL_HasSSE2() +SDL_bool SDL_HasAltiVec() { - if ( SDL_GetCPUFeatures() & CPU_HAS_SSE2 ) { - return SDL_TRUE; - } - return SDL_FALSE; + if ( SDL_GetCPUFeatures() & CPU_HAS_ALTIVEC ) { + return SDL_TRUE; + } + return SDL_FALSE; } #ifdef TEST_MAIN