1 /// @ref simd 2 /// @file glm/simd/experimental.h 3 4 #pragma once 5 6 #include "platform.h" 7 8 #if GLM_ARCH & GLM_ARCH_SSE2_BIT 9 glm_vec1_sqrt_lowp(glm_vec4 x)10GLM_FUNC_QUALIFIER glm_vec4 glm_vec1_sqrt_lowp(glm_vec4 x) 11 { 12 return _mm_mul_ss(_mm_rsqrt_ss(x), x); 13 } 14 glm_vec4_sqrt_lowp(glm_vec4 x)15GLM_FUNC_QUALIFIER glm_vec4 glm_vec4_sqrt_lowp(glm_vec4 x) 16 { 17 return _mm_mul_ps(_mm_rsqrt_ps(x), x); 18 } 19 20 #endif//GLM_ARCH & GLM_ARCH_SSE2_BIT 21