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

Function HMM_MulV4F

HandmadeMath.h:798–815  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

796
797COVERAGE(HMM_MulV4F, 1)
798static inline HMM_Vec4 HMM_MulV4F(HMM_Vec4 Left, float Right)
799{
800 ASSERT_COVERED(HMM_MulV4F);
801
802 HMM_Vec4 Result;
803
804#ifdef HANDMADE_MATH__USE_SSE
805 __m128 Scalar = _mm_set1_ps(Right);
806 Result.SSE = _mm_mul_ps(Left.SSE, Scalar);
807#else
808 Result.X = Left.X * Right;
809 Result.Y = Left.Y * Right;
810 Result.Z = Left.Z * Right;
811 Result.W = Left.W * Right;
812#endif
813
814 return Result;
815}
816
817COVERAGE(HMM_DivV2, 1)
818static inline HMM_Vec2 HMM_DivV2(HMM_Vec2 Left, HMM_Vec2 Right)

Callers 6

HMM_NormV4Function · 0.85
HMM_LerpV4Function · 0.85
HMM_InvLookAtFunction · 0.85
HMM_MulFunction · 0.85
operator*Function · 0.85
TESTFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected