mirror of https://github.com/axmolengine/axmol.git
kazmath: removes unneeded `memcpy`
gains about 5% in improvement Signed-off-by: Ricardo Quesada <ricardoquesada@gmail.com>
This commit is contained in:
parent
eff8f4307f
commit
c4eb6c99ab
|
@ -218,13 +218,13 @@ kmMat4* const kmMat4Multiply(kmMat4* pOut, const kmMat4* pM1, const kmMat4* pM2)
|
|||
{
|
||||
#if defined(__ARM_NEON__)
|
||||
|
||||
float mat[16];
|
||||
float *mat = pOut->mat;
|
||||
|
||||
// Invert column-order with row-order
|
||||
NEON_Matrix4Mul( &pM2->mat[0], &pM1->mat[0], &mat[0] );
|
||||
|
||||
#else
|
||||
float mat[16];
|
||||
float *mat = pOut->mat;
|
||||
|
||||
const float *m1 = pM1->mat, *m2 = pM2->mat;
|
||||
|
||||
|
@ -250,8 +250,6 @@ kmMat4* const kmMat4Multiply(kmMat4* pOut, const kmMat4* pM1, const kmMat4* pM2)
|
|||
|
||||
#endif
|
||||
|
||||
memcpy(pOut->mat, mat, sizeof(float)*16);
|
||||
|
||||
return pOut;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue