From: divverent Date: Fri, 8 Apr 2011 17:49:18 +0000 (+0000) Subject: clang has _mm_cvtss_f32 but not __builtin_ia32_vec_ext_v4sf X-Git-Tag: xonotic-v0.5.0~288 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=ae103ae4b87f7c25a84089aa763da69de0ce0cc4;p=xonotic%2Fdarkplaces.git clang has _mm_cvtss_f32 but not __builtin_ia32_vec_ext_v4sf git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11039 d7cf8633-e32d-0410-b094-e92efae38249 ::stable-branch::merge=12cff679cfcf804619986cac2afa44e2825914a5 --- diff --git a/dpsoftrast.c b/dpsoftrast.c index 609f444e..222b71c6 100644 --- a/dpsoftrast.c +++ b/dpsoftrast.c @@ -73,7 +73,7 @@ typedef qboolean bool; #ifdef SSE_POSSIBLE #include -#if defined(__GNUC__) && (__GNUC < 4 || __GNUC_MINOR__ < 6) +#if defined(__GNUC__) && (__GNUC < 4 || __GNUC_MINOR__ < 6) && !defined(__clang__) #define _mm_cvtss_f32(val) (__builtin_ia32_vec_ext_v4sf ((__v4sf)(val), 0)) #endif