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<T, P, vecType, Aligned>
                                            ^
../thirdparty/glm/detail/../detail/func_common.inl:183:9: note: provided for 'template<class T, glm::precision P, template<class, glm::precision <anonymous> > class vecType, bool isFloat, bool Aligned> struct glm::detail::compute_sign'
  struct compute_sign
         ^~~~~~~~~~~~
```
This commit is contained in:
Sami Kankaristo 2016-07-23 20:34:26 +03:00
parent 8e8edcfb8d
commit 2bb36acdf5

View File

@ -188,20 +188,6 @@ namespace detail
} }
}; };
# if GLM_ARCH == GLM_ARCH_X86
template <typename T, precision P, template <typename, precision> class vecType, bool Aligned>
struct compute_sign<T, P, vecType, Aligned>
{
GLM_FUNC_QUALIFIER static vecType<T, P> call(vecType<T, P> const & x)
{
T const Shift(static_cast<T>(sizeof(T) * 8 - 1));
vecType<T, P> const y(vecType<typename make_unsigned<T>::type, P>(-x) >> typename make_unsigned<T>::type(Shift));
return (x >> Shift) | y;
}
};
# endif
template <typename T, precision P, template <typename, precision> class vecType, bool Aligned> template <typename T, precision P, template <typename, precision> class vecType, bool Aligned>
struct compute_floor struct compute_floor
{ {