813 B、37行 生 Blame 履歴
1/// @ref core
2/// @file glm/detail/func_exponential_simd.inl
3
4#include "../simd/exponential.h"
5
6#if GLM_ARCH & GLM_ARCH_SSE2_BIT
7
8namespace glm{
9namespace detail
10{
11 template<qualifier Q>
12 struct compute_sqrt<4, float, Q, true>
13 {
14 GLM_FUNC_QUALIFIER static vec<4, float, Q> call(vec<4, float, Q> const& v)
15 {
16 vec<4, float, Q> Result;
17 Result.data = _mm_sqrt_ps(v.data);
18 return Result;
19 }
20 };
21
22# if GLM_CONFIG_ALIGNED_GENTYPES == GLM_ENABLE
23 template<>
24 struct compute_sqrt<4, float, aligned_lowp, true>
25 {
26 GLM_FUNC_QUALIFIER static vec<4, float, aligned_lowp> call(vec<4, float, aligned_lowp> const& v)
27 {
28 vec<4, float, aligned_lowp> Result;
29 Result.data = glm_vec4_sqrt_lowp(v.data);
30 return Result;
31 }
32 };
33# endif
34}//namespace detail
35}//namespace glm
36
37#endif//GLM_ARCH & GLM_ARCH_SSE2_BIT