From 45c4fbeb65af1968852738b887ec1ad8f01c50f1 Mon Sep 17 00:00:00 2001 From: Christophe Riccio Date: Sun, 26 Oct 2014 00:54:36 +0200 Subject: [PATCH] Fixed build --- glm/gtc/bitfield.hpp | 2 ++ glm/gtc/bitfield.inl | 22 +++++++++++----------- 2 files changed, 13 insertions(+), 11 deletions(-) diff --git a/glm/gtc/bitfield.hpp b/glm/gtc/bitfield.hpp index bd98bf51..322d73a8 100644 --- a/glm/gtc/bitfield.hpp +++ b/glm/gtc/bitfield.hpp @@ -42,6 +42,8 @@ #include "../detail/setup.hpp" #include "../detail/precision.hpp" #include "../detail/type_int.hpp" +#include "../detail/_vectorize.hpp" +#include #if(defined(GLM_MESSAGES) && !defined(GLM_EXT_INCLUDED)) # pragma message("GLM: GLM_GTC_bitfield extension included") diff --git a/glm/gtc/bitfield.inl b/glm/gtc/bitfield.inl index 7b0b027d..ae70dd92 100644 --- a/glm/gtc/bitfield.inl +++ b/glm/gtc/bitfield.inl @@ -256,17 +256,17 @@ namespace detail return detail::functor1::call(mask, v); } - template - GLM_FUNC_QUALIFIER genType bitRotateRight(genType In, int Shift) + template + GLM_FUNC_QUALIFIER genIType bitRotateRight(genIType In, int Shift) { - GLM_STATIC_ASSERT(std::numeric_limits::is_integer, "'bitRotateRight' only accept integer values"); + GLM_STATIC_ASSERT(std::numeric_limits::is_integer, "'bitRotateRight' only accept integer values"); - int const BitSize = static_cast(sizeof(T) * 8); - return (In << static_cast(Shift)) | (In >> static_cast(BitSize - Shift)); + int const BitSize = static_cast(sizeof(genIType) * 8); + return (In << static_cast(Shift)) | (In >> static_cast(BitSize - Shift)); } template class vecType> - GLM_FUNC_QUALIFIER vecType bitRotateRight(vecType const & Value, int Shift) + GLM_FUNC_QUALIFIER vecType bitRotateRight(vecType const & In, int Shift) { GLM_STATIC_ASSERT(std::numeric_limits::is_integer, "'bitRotateRight' only accept integer values"); @@ -274,13 +274,13 @@ namespace detail return (In << static_cast(Shift)) | (In >> static_cast(BitSize - Shift)); } - template - GLM_FUNC_QUALIFIER genType bitRotateLeft(genType In, int Shift) + template + GLM_FUNC_QUALIFIER genIType bitRotateLeft(genIType In, int Shift) { - GLM_STATIC_ASSERT(std::numeric_limits::is_integer, "'bitRotateLeft' only accept integer values"); + GLM_STATIC_ASSERT(std::numeric_limits::is_integer, "'bitRotateLeft' only accept integer values"); - int const BitSize = static_cast(sizeof(T) * 8); - return (In >> static_cast(Shift)) | (In << static_cast(BitSize - Shift)); + int const BitSize = static_cast(sizeof(genIType) * 8); + return (In >> static_cast(Shift)) | (In << static_cast(BitSize - Shift)); } template class vecType>