src/cpuinfo/SDL_cpuinfo.c
changeset 786 e1e0a0a94570
parent 785 ca06a994f03c
child 787 07760c8854d1
     1.1 --- a/src/cpuinfo/SDL_cpuinfo.c	Sat Jan 24 05:47:19 2004 +0000
     1.2 +++ b/src/cpuinfo/SDL_cpuinfo.c	Sat Jan 24 05:57:56 2004 +0000
     1.3 @@ -238,24 +238,24 @@
     1.4  		if ( CPU_haveMMX() ) {
     1.5  			SDL_CPUFeatures |= CPU_HAS_MMX;
     1.6  		}
     1.7 +		if ( CPU_haveMMXExt() ) {
     1.8 +			SDL_CPUFeatures |= CPU_HAS_MMXEXT;
     1.9 +		}
    1.10  		if ( CPU_have3DNow() ) {
    1.11  			SDL_CPUFeatures |= CPU_HAS_3DNOW;
    1.12  		}
    1.13 +		if ( CPU_have3DNowExt() ) {
    1.14 +			SDL_CPUFeatures |= CPU_HAS_3DNOWEXT;
    1.15 +		}
    1.16  		if ( CPU_haveSSE() ) {
    1.17  			SDL_CPUFeatures |= CPU_HAS_SSE;
    1.18  		}
    1.19 +		if ( CPU_haveSSE2() ) {
    1.20 +			SDL_CPUFeatures |= CPU_HAS_SSE2;
    1.21 +		}
    1.22  		if ( CPU_haveAltiVec() ) {
    1.23  			SDL_CPUFeatures |= CPU_HAS_ALTIVEC;
    1.24  		}
    1.25 -      if ( CPU_haveMMXExt() ) {
    1.26 -         SDL_CPUFeatures |= CPU_HAS_MMXEXT;
    1.27 -      }
    1.28 -      if ( CPU_have3DNowExt() ) {
    1.29 -         SDL_CPUFeatures |= CPU_HAS_3DNOWEXT;
    1.30 -      }
    1.31 -      if ( CPU_haveSSE2() ) {
    1.32 -         SDL_CPUFeatures |= CPU_HAS_SSE2;
    1.33 -      }
    1.34  	}
    1.35  	return SDL_CPUFeatures;
    1.36  }