Fixed SIMD build

master
Christophe Riccio ago%!(EXTRA string=8 years)
parent 8bcf9b5ae7
commit 1bbf2dafb9
  1. 2
      glm/detail/func_exponential_simd.inl
  2. 8
      glm/detail/func_matrix_simd.inl

@ -13,7 +13,7 @@ namespace detail
{ {
GLM_FUNC_QUALIFIER static vec<4, float, Q> call(vec<4, float, Q> const& v) GLM_FUNC_QUALIFIER static vec<4, float, Q> call(vec<4, float, Q> const& v)
{ {
vec<4, float, P> Result; vec<4, float, Q> Result;
Result.data = _mm_sqrt_ps(v.data); Result.data = _mm_sqrt_ps(v.data);
return Result; return Result;
} }

@ -12,7 +12,7 @@ namespace glm{
namespace detail namespace detail
{ {
template<qualifier Q> template<qualifier Q>
struct compute_matrixCompMult<mat, 4, 4, float, Q, true> struct compute_matrixCompMult<4, 4, float, Q, true>
{ {
GLM_STATIC_ASSERT(detail::is_aligned<P>::value, "Specialization requires aligned"); GLM_STATIC_ASSERT(detail::is_aligned<P>::value, "Specialization requires aligned");
@ -28,7 +28,7 @@ namespace detail
}; };
template<qualifier Q> template<qualifier Q>
struct compute_transpose<mat, 4, 4, float, Q, true> struct compute_transpose<4, 4, float, Q, true>
{ {
GLM_FUNC_QUALIFIER static mat<4, 4, float, Q> call(mat<4, 4, float, Q> const& m) GLM_FUNC_QUALIFIER static mat<4, 4, float, Q> call(mat<4, 4, float, Q> const& m)
{ {
@ -41,7 +41,7 @@ namespace detail
}; };
template<qualifier Q> template<qualifier Q>
struct compute_determinant<mat, 4, 4, float, Q, true> struct compute_determinant<4, 4, float, Q, true>
{ {
GLM_FUNC_QUALIFIER static float call(mat<4, 4, float, Q> const& m) GLM_FUNC_QUALIFIER static float call(mat<4, 4, float, Q> const& m)
{ {
@ -50,7 +50,7 @@ namespace detail
}; };
template<qualifier Q> template<qualifier Q>
struct compute_inverse<mat, 4, 4, float, Q, true> struct compute_inverse<4, 4, float, Q, true>
{ {
GLM_FUNC_QUALIFIER static mat<4, 4, float, Q> call(mat<4, 4, float, Q> const& m) GLM_FUNC_QUALIFIER static mat<4, 4, float, Q> call(mat<4, 4, float, Q> const& m)
{ {

Loading…
Cancel
Save