From e62817b8252974b8a98393275874ee303840bf13 Mon Sep 17 00:00:00 2001 From: LaG1924 <12997935+LaG1924@users.noreply.github.com> Date: Fri, 12 May 2017 18:49:50 +0500 Subject: 2017-05-12 --- .../include/glm/detail/func_exponential_simd.inl | 35 ++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 depedencies/include/glm/detail/func_exponential_simd.inl (limited to 'depedencies/include/glm/detail/func_exponential_simd.inl') diff --git a/depedencies/include/glm/detail/func_exponential_simd.inl b/depedencies/include/glm/detail/func_exponential_simd.inl new file mode 100644 index 0000000..d7529ba --- /dev/null +++ b/depedencies/include/glm/detail/func_exponential_simd.inl @@ -0,0 +1,35 @@ +/// @ref core +/// @file glm/detail/func_exponential_simd.inl + +#include "../simd/exponential.h" + +#if GLM_ARCH & GLM_ARCH_SSE2_BIT + +namespace glm{ +namespace detail +{ + template + struct compute_sqrt + { + GLM_FUNC_QUALIFIER static tvec4 call(tvec4 const & v) + { + tvec4 result(uninitialize); + result.data = _mm_sqrt_ps(v.data); + return result; + } + }; + + template <> + struct compute_sqrt + { + GLM_FUNC_QUALIFIER static tvec4 call(tvec4 const & v) + { + tvec4 result(uninitialize); + result.data = glm_vec4_sqrt_lowp(v.data); + return result; + } + }; +}//namespace detail +}//namespace glm + +#endif//GLM_ARCH & GLM_ARCH_SSE2_BIT -- cgit v1.2.3