From: havoc Date: Fri, 1 Apr 2011 15:02:51 +0000 (+0000) Subject: fix compilation when SSE2_PRESENT, also fix compilation without SSE_POSSIBLE X-Git-Tag: xonotic-v0.6.0~163^2~540 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=6c90b6072197cf5b098dfa6530f366b15295c99e;p=xonotic%2Fdarkplaces.git fix compilation when SSE2_PRESENT, also fix compilation without SSE_POSSIBLE git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11006 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/quakedef.h b/quakedef.h index 03b87f73..2b5af8c0 100644 --- a/quakedef.h +++ b/quakedef.h @@ -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