9
3

quaternion_common_simd.inl 372 B

123456789101112131415161718
  1. #if GLM_ARCH & GLM_ARCH_SSE2_BIT
  2. namespace glm{
  3. namespace detail
  4. {
  5. template<qualifier Q>
  6. struct compute_dot<qua<float, Q>, float, true>
  7. {
  8. static GLM_FUNC_QUALIFIER float call(qua<float, Q> const& x, qua<float, Q> const& y)
  9. {
  10. return _mm_cvtss_f32(glm_vec1_dot(x.data, y.data));
  11. }
  12. };
  13. }//namespace detail
  14. }//namespace glm
  15. #endif//GLM_ARCH & GLM_ARCH_SSE2_BIT