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

Function HMM_DivQF

HandmadeMath.h:2217–2234  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2215
2216COVERAGE(HMM_DivQF, 1)
2217static 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
2236COVERAGE(HMM_DotQ, 1)
2237static inline float HMM_DotQ(HMM_Quat Left, HMM_Quat Right)

Callers 4

HMM_InvQFunction · 0.85
HMM_DivFunction · 0.85
operator/Function · 0.85
TESTFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected