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

Function HMM_AddV4

HandmadeMath.h:666–682  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

664
665COVERAGE(HMM_AddV4, 1)
666static inline HMM_Vec4 HMM_AddV4(HMM_Vec4 Left, HMM_Vec4 Right)
667{
668 ASSERT_COVERED(HMM_AddV4);
669
670 HMM_Vec4 Result;
671
672#ifdef HANDMADE_MATH__USE_SSE
673 Result.SSE = _mm_add_ps(Left.SSE, Right.SSE);
674#else
675 Result.X = Left.X + Right.X;
676 Result.Y = Left.Y + Right.Y;
677 Result.Z = Left.Z + Right.Z;
678 Result.W = Left.W + Right.W;
679#endif
680
681 return Result;
682}
683
684COVERAGE(HMM_SubV2, 1)
685static inline HMM_Vec2 HMM_SubV2(HMM_Vec2 Left, HMM_Vec2 Right)

Callers 4

HMM_LerpV4Function · 0.85
HMM_AddFunction · 0.85
operator+Function · 0.85
TESTFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected