MCPcopy Index your code
hub / github.com/HandmadeMath/HandmadeMath / HMM_MulQF

Function HMM_MulQF

HandmadeMath.h:2197–2214  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2195
2196COVERAGE(HMM_MulQF, 1)
2197static inline HMM_Quat HMM_MulQF(HMM_Quat Left, float Multiplicative)
2198{
2199 ASSERT_COVERED(HMM_MulQF);
2200
2201 HMM_Quat Result;
2202
2203#ifdef HANDMADE_MATH__USE_SSE
2204 __m128 Scalar = _mm_set1_ps(Multiplicative);
2205 Result.SSE = _mm_mul_ps(Left.SSE, Scalar);
2206#else
2207 Result.X = Left.X * Multiplicative;
2208 Result.Y = Left.Y * Multiplicative;
2209 Result.Z = Left.Z * Multiplicative;
2210 Result.W = Left.W * Multiplicative;
2211#endif
2212
2213 return Result;
2214}
2215
2216COVERAGE(HMM_DivQF, 1)
2217static inline HMM_Quat HMM_DivQF(HMM_Quat Left, float Divnd)

Callers 5

HMM_M4ToQ_RHFunction · 0.85
HMM_M4ToQ_LHFunction · 0.85
HMM_MulFunction · 0.85
operator*Function · 0.85
TESTFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected