From 2bb36acdf5eb4ce166bd484c5ab5dfc185cbcccd Mon Sep 17 00:00:00 2001 From: Sami Kankaristo Date: Sat, 23 Jul 2016 20:34:26 +0300 Subject: [PATCH] Fix 32-bit builds with GCC GCC fails to compile a 32-bit build with error: ``` ../thirdparty/glm/detail/../detail/func_common.inl:193:44: error: wrong number of template arguments (4, should be 5) struct compute_sign ^ ../thirdparty/glm/detail/../detail/func_common.inl:183:9: note: provided for 'template > class vecType, bool isFloat, bool Aligned> struct glm::detail::compute_sign' struct compute_sign ^~~~~~~~~~~~ ``` --- glm/detail/func_common.inl | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/glm/detail/func_common.inl b/glm/detail/func_common.inl index 59a31d9b..2364937c 100644 --- a/glm/detail/func_common.inl +++ b/glm/detail/func_common.inl @@ -188,20 +188,6 @@ namespace detail } }; -# if GLM_ARCH == GLM_ARCH_X86 - template class vecType, bool Aligned> - struct compute_sign - { - GLM_FUNC_QUALIFIER static vecType call(vecType const & x) - { - T const Shift(static_cast(sizeof(T) * 8 - 1)); - vecType const y(vecType::type, P>(-x) >> typename make_unsigned::type(Shift)); - - return (x >> Shift) | y; - } - }; -# endif - template class vecType, bool Aligned> struct compute_floor {