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