From: eihrul Date: Wed, 26 Jan 2011 12:15:42 +0000 (+0000) Subject: added SSE2_PRESENT define X-Git-Tag: xonotic-v0.5.0~438^2~91 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=fbc71111610daf59642a19238a3b13317e885d32;p=xonotic%2Fdarkplaces.git added SSE2_PRESENT define git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10750 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/quakedef.h b/quakedef.h index 8baeb9b0..f378a9ee 100644 --- a/quakedef.h +++ b/quakedef.h @@ -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