Skip to content

Commit

Permalink
*** empty log message ***
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Feb 10, 2004
1 parent 3eab7a5 commit 82a8cf2
Showing 1 changed file with 21 additions and 21 deletions.
42 changes: 21 additions & 21 deletions src/cpuinfo/SDL_cpuinfo.c
Expand Up @@ -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
Expand Down

0 comments on commit 82a8cf2

Please sign in to comment.