]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
added SSE2_PRESENT define
authoreihrul <eihrul@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 26 Jan 2011 12:15:42 +0000 (12:15 +0000)
committereihrul <eihrul@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 26 Jan 2011 12:15:42 +0000 (12:15 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10750 d7cf8633-e32d-0410-b094-e92efae38249

quakedef.h

index 8baeb9b065154deb3d99846a7489501ab05a69c2..f378a9ee9a26265ea57c12ba9862e298dc6d8439 100644 (file)
@@ -449,15 +449,23 @@ extern cvar_t developer_loading;
 # if defined(__i386__)
 #  define DP_ARCH_STR          "686"
 #  define SSE_POSSIBLE
+#  ifdef __SSE__
+#   define SSE_PRESENT
+#  endif
+#  ifdef __SSE2__
+#   define SSE2_PRESENT
+#  endif
 # elif defined(__x86_64__)
 #  define DP_ARCH_STR          "x86_64"
 #  define SSE_PRESENT
+#  define SSE2_PRESENT
 # elif defined(__powerpc__)
 #  define DP_ARCH_STR          "ppc"
 # endif
 #elif defined(_WIN64)
 # define DP_ARCH_STR           "x86_64"
 # define SSE_PRESENT
+# define SSE2_PRESENT
 #elif defined(WIN32)
 # define DP_ARCH_STR           "x86"
 # define SSE_POSSIBLE
@@ -470,6 +478,7 @@ extern cvar_t developer_loading;
 #ifdef NO_SSE
 # undef SSE_PRESENT
 # undef SSE_POSSIBLE
+# undef SSE2_PRESENT
 #endif
 
 /// incremented every frame, never reset