| 2128 | |
| 2129 | COVERAGE(HMM_SubQ, 1) |
| 2130 | static inline HMM_Quat HMM_SubQ(HMM_Quat Left, HMM_Quat Right) |
| 2131 | { |
| 2132 | ASSERT_COVERED(HMM_SubQ); |
| 2133 | |
| 2134 | HMM_Quat Result; |
| 2135 | |
| 2136 | #ifdef HANDMADE_MATH__USE_SSE |
| 2137 | Result.SSE = _mm_sub_ps(Left.SSE, Right.SSE); |
| 2138 | #else |
| 2139 | Result.X = Left.X - Right.X; |
| 2140 | Result.Y = Left.Y - Right.Y; |
| 2141 | Result.Z = Left.Z - Right.Z; |
| 2142 | Result.W = Left.W - Right.W; |
| 2143 | #endif |
| 2144 | |
| 2145 | return Result; |
| 2146 | } |
| 2147 | |
| 2148 | COVERAGE(HMM_MulQ, 1) |
| 2149 | static inline HMM_Quat HMM_MulQ(HMM_Quat Left, HMM_Quat Right) |