]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
fix compilation when SSE2_PRESENT, also fix compilation without SSE_POSSIBLE
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 1 Apr 2011 15:02:51 +0000 (15:02 +0000)
committerRudolf Polzer <divverent@alientrap.org>
Fri, 1 Apr 2011 21:22:11 +0000 (23:22 +0200)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11006 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=6c90b6072197cf5b098dfa6530f366b15295c99e

quakedef.h

index 03b87f732719fa62b17ced0ffad16110f0286a6d..2b5af8c020309d582ac1722308012c32ec9a64f2 100644 (file)
@@ -475,10 +475,16 @@ extern cvar_t developer_loading;
 # undef SSE2_PRESENT
 #endif
 
-// for x86 cpus only...  (x64 has SSE2_PRESENT)
-#if defined(SSE_POSSIBLE) && !defined(SSE2_PRESENT)
+#ifdef SSE2_PRESENT
+#define Sys_HaveSSE() true
+#define Sys_HaveSSE2() true
+#elif defined(SSE_POSSIBLE)
+// runtime detection of SSE/SSE2 capabilities for x86
 qboolean Sys_HaveSSE(void);
 qboolean Sys_HaveSSE2(void);
+#else
+#define Sys_HaveSSE() false
+#define Sys_HaveSSE2() false
 #endif
 
 /// incremented every frame, never reset