From ba46e0500e4b5b130303108626aabc55d2fb4234 Mon Sep 17 00:00:00 2001 From: Stephen Hill Date: Wed, 23 Dec 2015 12:18:14 -0500 Subject: [PATCH] Fixed 'GLM_COMPILER_VC2005 is not defined' warning This GLM compiler version isn't defined, so I just removed the legacy functions. --- glm/detail/setup.hpp | 7 ------- 1 file changed, 7 deletions(-) diff --git a/glm/detail/setup.hpp b/glm/detail/setup.hpp index 71a7b098..34244ee9 100644 --- a/glm/detail/setup.hpp +++ b/glm/detail/setup.hpp @@ -455,13 +455,6 @@ #endif//GLM_ARCH #if GLM_ARCH & GLM_ARCH_SSE2 # include -# if(GLM_COMPILER == GLM_COMPILER_VC2005) // VC2005 is missing some intrinsics, workaround - inline float _mm_cvtss_f32(__m128 A) { return A.m128_f32[0]; } - inline __m128 _mm_castpd_ps(__m128d PD) { union { __m128 ps; __m128d pd; } c; c.pd = PD; return c.ps; } - inline __m128d _mm_castps_pd(__m128 PS) { union { __m128 ps; __m128d pd; } c; c.ps = PS; return c.pd; } - inline __m128i _mm_castps_si128(__m128 PS) { union { __m128 ps; __m128i pi; } c; c.ps = PS; return c.pi; } - inline __m128 _mm_castsi128_ps(__m128i PI) { union { __m128 ps; __m128i pi; } c; c.pi = PI; return c.ps; } -# endif #endif//GLM_ARCH #if defined(GLM_MESSAGES) && !defined(GLM_MESSAGE_ARCH_DISPLAYED)