| 2215 | |
| 2216 | COVERAGE(HMM_DivQF, 1) |
| 2217 | static inline HMM_Quat HMM_DivQF(HMM_Quat Left, float Divnd) |
| 2218 | { |
| 2219 | ASSERT_COVERED(HMM_DivQF); |
| 2220 | |
| 2221 | HMM_Quat Result; |
| 2222 | |
| 2223 | #ifdef HANDMADE_MATH__USE_SSE |
| 2224 | __m128 Scalar = _mm_set1_ps(Divnd); |
| 2225 | Result.SSE = _mm_div_ps(Left.SSE, Scalar); |
| 2226 | #else |
| 2227 | Result.X = Left.X / Divnd; |
| 2228 | Result.Y = Left.Y / Divnd; |
| 2229 | Result.Z = Left.Z / Divnd; |
| 2230 | Result.W = Left.W / Divnd; |
| 2231 | #endif |
| 2232 | |
| 2233 | return Result; |
| 2234 | } |
| 2235 | |
| 2236 | COVERAGE(HMM_DotQ, 1) |
| 2237 | static inline float HMM_DotQ(HMM_Quat Left, HMM_Quat Right) |