*** empty log message ***
authorSam Lantinga <slouken@libsdl.org>
Tue, 10 Feb 2004 15:31:35 +0000
changeset 804 b2fda076b02e
parent 803 355632dca928
child 805 df1a3218b468
*** empty log message ***
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 <stdio.h>