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

Function HMM_TransposeM4

HandmadeMath.h:1476–1499  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1474
1475COVERAGE(HMM_TransposeM4, 1)
1476static inline HMM_Mat4 HMM_TransposeM4(HMM_Mat4 Matrix)
1477{
1478 ASSERT_COVERED(HMM_TransposeM4);
1479
1480 HMM_Mat4 Result = Matrix;
1481#ifdef HANDMADE_MATH__USE_SSE
1482 _MM_TRANSPOSE4_PS(Result.Columns[0].SSE, Result.Columns[1].SSE, Result.Columns[2].SSE, Result.Columns[3].SSE);
1483#else
1484 Result.Elements[0][1] = Matrix.Elements[1][0];
1485 Result.Elements[0][2] = Matrix.Elements[2][0];
1486 Result.Elements[0][3] = Matrix.Elements[3][0];
1487 Result.Elements[1][0] = Matrix.Elements[0][1];
1488 Result.Elements[1][2] = Matrix.Elements[2][1];
1489 Result.Elements[1][3] = Matrix.Elements[3][1];
1490 Result.Elements[2][1] = Matrix.Elements[1][2];
1491 Result.Elements[2][0] = Matrix.Elements[0][2];
1492 Result.Elements[2][3] = Matrix.Elements[3][2];
1493 Result.Elements[3][1] = Matrix.Elements[1][3];
1494 Result.Elements[3][2] = Matrix.Elements[2][3];
1495 Result.Elements[3][0] = Matrix.Elements[0][3];
1496#endif
1497
1498 return Result;
1499}
1500
1501COVERAGE(HMM_AddM4, 1)
1502static inline HMM_Mat4 HMM_AddM4(HMM_Mat4 Left, HMM_Mat4 Right)

Callers 5

HMM_InvGeneralM4Function · 0.85
HMM_InvRotateFunction · 0.85
HMM_TransposeFunction · 0.85
TESTFunction · 0.85
TESTFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected