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

Function HMM_SubV4

HandmadeMath.h:710–726  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

708
709COVERAGE(HMM_SubV4, 1)
710static inline HMM_Vec4 HMM_SubV4(HMM_Vec4 Left, HMM_Vec4 Right)
711{
712 ASSERT_COVERED(HMM_SubV4);
713
714 HMM_Vec4 Result;
715
716#ifdef HANDMADE_MATH__USE_SSE
717 Result.SSE = _mm_sub_ps(Left.SSE, Right.SSE);
718#else
719 Result.X = Left.X - Right.X;
720 Result.Y = Left.Y - Right.Y;
721 Result.Z = Left.Z - Right.Z;
722 Result.W = Left.W - Right.W;
723#endif
724
725 return Result;
726}
727
728COVERAGE(HMM_MulV2, 1)
729static inline HMM_Vec2 HMM_MulV2(HMM_Vec2 Left, HMM_Vec2 Right)

Callers 3

HMM_SubFunction · 0.85
operator-Function · 0.85
TESTFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected