From 6c90b6072197cf5b098dfa6530f366b15295c99e Mon Sep 17 00:00:00 2001 From: havoc Date: Fri, 1 Apr 2011 15:02:51 +0000 Subject: [PATCH] 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 --- quakedef.h | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) 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 -- 2.39.2