*** empty log message ***
authorSam Lantinga <slouken@libsdl.org>
Tue, 10 Feb 2004 15:31:35 +0000
changeset 804b2fda076b02e
parent 803 355632dca928
child 805 df1a3218b468
*** empty log message ***
src/cpuinfo/SDL_cpuinfo.c
     1.1 --- a/src/cpuinfo/SDL_cpuinfo.c	Tue Feb 10 15:15:40 2004 +0000
     1.2 +++ b/src/cpuinfo/SDL_cpuinfo.c	Tue Feb 10 15:31:35 2004 +0000
     1.3 @@ -301,6 +301,14 @@
     1.4  	return SDL_FALSE;
     1.5  }
     1.6  
     1.7 +SDL_bool SDL_HasMMXExt()
     1.8 +{
     1.9 +	if ( SDL_GetCPUFeatures() & CPU_HAS_MMXEXT ) {
    1.10 +		return SDL_TRUE;
    1.11 +	}
    1.12 +	return SDL_FALSE;
    1.13 +}
    1.14 +
    1.15  SDL_bool SDL_Has3DNow()
    1.16  {
    1.17  	if ( SDL_GetCPUFeatures() & CPU_HAS_3DNOW ) {
    1.18 @@ -309,6 +317,14 @@
    1.19  	return SDL_FALSE;
    1.20  }
    1.21  
    1.22 +SDL_bool SDL_Has3DNowExt()
    1.23 +{
    1.24 +	if ( SDL_GetCPUFeatures() & CPU_HAS_3DNOWEXT ) {
    1.25 +		return SDL_TRUE;
    1.26 +	}
    1.27 +	return SDL_FALSE;
    1.28 +}
    1.29 +
    1.30  SDL_bool SDL_HasSSE()
    1.31  {
    1.32  	if ( SDL_GetCPUFeatures() & CPU_HAS_SSE ) {
    1.33 @@ -317,6 +333,14 @@
    1.34  	return SDL_FALSE;
    1.35  }
    1.36  
    1.37 +SDL_bool SDL_HasSSE2()
    1.38 +{
    1.39 +	if ( SDL_GetCPUFeatures() & CPU_HAS_SSE2 ) {
    1.40 +		return SDL_TRUE;
    1.41 +	}
    1.42 +	return SDL_FALSE;
    1.43 +}
    1.44 +
    1.45  SDL_bool SDL_HasAltiVec()
    1.46  {
    1.47  	if ( SDL_GetCPUFeatures() & CPU_HAS_ALTIVEC ) {
    1.48 @@ -325,30 +349,6 @@
    1.49  	return SDL_FALSE;
    1.50  }
    1.51  
    1.52 -SDL_bool SDL_HasMMXExt()
    1.53 -{
    1.54 -   if ( SDL_GetCPUFeatures() & CPU_HAS_MMXEXT ) {
    1.55 -      return SDL_TRUE;
    1.56 -   }
    1.57 -   return SDL_FALSE;
    1.58 -}
    1.59 -
    1.60 -SDL_bool SDL_Has3DNowExt()
    1.61 -{
    1.62 -   if ( SDL_GetCPUFeatures() & CPU_HAS_3DNOWEXT ) {
    1.63 -      return SDL_TRUE;
    1.64 -   }
    1.65 -   return SDL_FALSE;
    1.66 -}
    1.67 -
    1.68 -SDL_bool SDL_HasSSE2()
    1.69 -{
    1.70 -   if ( SDL_GetCPUFeatures() & CPU_HAS_SSE2 ) {
    1.71 -      return SDL_TRUE;
    1.72 -   }
    1.73 -   return SDL_FALSE;
    1.74 -}
    1.75 -
    1.76  #ifdef TEST_MAIN
    1.77  
    1.78  #include <stdio.h>