diff --git a/glm/detail/func_geometric_simd.inl b/glm/detail/func_geometric_simd.inl index 4e89905e..e2e4d4ef 100644 --- a/glm/detail/func_geometric_simd.inl +++ b/glm/detail/func_geometric_simd.inl @@ -5,6 +5,24 @@ namespace glm{ namespace detail { + template + struct compute_length + { + GLM_FUNC_QUALIFIER static float call(tvec4 const & v) + { + return _mm_cvtss_f32(glm_f32v4_len(v.data)); + } + }; + + template + struct compute_distance + { + GLM_FUNC_QUALIFIER static float call(tvec4 const & p0, tvec4 const & p1) + { + return _mm_cvtss_f32(glm_f32v4_dst(p0.data, p1.data)); + } + }; + template struct compute_dot {