From 3d1fc74ebe195d623509737e033a8d5105e37e1a Mon Sep 17 00:00:00 2001 From: Christophe Riccio Date: Tue, 17 May 2011 11:06:13 +0100 Subject: [PATCH] Fixed error on Visual C++ when C++ extension are disable --- glm/core/intrinsic_common.inl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/glm/core/intrinsic_common.inl b/glm/core/intrinsic_common.inl index 3c123bb6..82c940a8 100644 --- a/glm/core/intrinsic_common.inl +++ b/glm/core/intrinsic_common.inl @@ -13,12 +13,12 @@ namespace detail{ union ieee754_QNAN { const float f; - struct + struct i { const unsigned int mantissa:23, exp:8, sign:1; }; - ieee754_QNAN() : f(0.0), mantissa(0x7FFFFF), exp(0xFF), sign(0x0) {} + ieee754_QNAN() : f(0.0)/*, mantissa(0x7FFFFF), exp(0xFF), sign(0x0)*/ {} }; static const __m128 zero = _mm_setzero_ps(); @@ -170,7 +170,7 @@ GLM_FUNC_QUALIFIER __m128 sse_rnd_ps(__m128 x) } //roundEven -GLM_FUNC_QUALIFIER __m128 sse_rde_ps(__m128 v) +GLM_FUNC_QUALIFIER __m128 sse_rde_ps(__m128 x) { __m128 and0 = _mm_and_ps(glm::detail::_epi32_sign_mask, x); __m128 or0 = _mm_or_ps(and0, glm::detail::_ps_2pow23);