You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and dots ('.'), can be up to 35 characters long. Letters must be lowercase.
22 lines
473 B
22 lines
473 B
#include "../simd/geometric.h" |
|
|
|
namespace glm{ |
|
namespace detail |
|
{ |
|
# if GLM_HAS_UNRESTRICTED_UNIONS |
|
template <> |
|
struct compute_dot<tvec4, float, simd> |
|
{ |
|
GLM_FUNC_QUALIFIER static float call(tvec4<float, simd> const& x, tvec4<float, simd> const& y) |
|
{ |
|
__m128 const dot0 = glm_dot_ss(x.data, y.data); |
|
|
|
float Result = 0; |
|
_mm_store_ss(&Result, dot0); |
|
return Result; |
|
} |
|
}; |
|
# endif//GLM_HAS_UNRESTRICTED_UNIONS |
|
}//namespace detail |
|
}//namespace glm |
|
|
|
|