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

Function HMM_SubQ

HandmadeMath.h:2130–2146  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2128
2129COVERAGE(HMM_SubQ, 1)
2130static 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
2148COVERAGE(HMM_MulQ, 1)
2149static inline HMM_Quat HMM_MulQ(HMM_Quat Left, HMM_Quat Right)

Callers 3

HMM_SubFunction · 0.85
operator-Function · 0.85
TESTFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected