From cb7f4a9728b7cb21233dd1b81e774e86c73847e6 Mon Sep 17 00:00:00 2001 From: "erwin.coumans" Date: Sun, 27 Feb 2011 06:13:11 +0000 Subject: [PATCH] vectormath requires SSE2, but a single instruction required SSE3, added an #ifdef so it compiles on gcc, using both -msse2 and -msse3 --- src/vectormath/sse/vectormath_aos.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/vectormath/sse/vectormath_aos.h b/src/vectormath/sse/vectormath_aos.h index 5b0977020..961f3358c 100644 --- a/src/vectormath/sse/vectormath_aos.h +++ b/src/vectormath/sse/vectormath_aos.h @@ -50,11 +50,13 @@ #define VECTORMATH_FORCE_INLINE inline #endif//_WIN32 - +#ifdef __SSE3__ #define USE_SSE2_LDDQU #ifdef USE_SSE2_LDDQU #include //_mm_lddqu_si128 #endif //USE_SSE2_LDDQU +#endif //__SSE3__ + // TODO: Tidy typedef __m128 vec_float4;