glm/glm/detail/func_geometric_simd.inl
2016-05-28 11:21:04 +02:00

18 lines
356 B
C++

#include "../simd/geometric.h"
namespace glm{
namespace detail
{
template <precision P>
struct compute_dot<tvec4, float, P>
{
GLM_FUNC_QUALIFIER static float call(tvec4<float, P> const& x, tvec4<float, P> const& y)
{
__m128 const dot0 = glm_f32v1_dot(x.data, y.data);
return _mm_cvtss_f32(dot0);
}
};
}//namespace detail
}//namespace glm