mirror of
https://github.com/icaven/glm.git
synced 2025-12-07 17:26:50 +08:00
18 lines
356 B
C++
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
|
|
|