kazmath: removes unneeded `memcpy`

gains about 5% in improvement

Signed-off-by: Ricardo Quesada <ricardoquesada@gmail.com>
This commit is contained in:
Ricardo Quesada 2013-08-28 18:28:30 -07:00
parent eff8f4307f
commit c4eb6c99ab
1 changed files with 2 additions and 4 deletions

View File

@ -218,13 +218,13 @@ kmMat4* const kmMat4Multiply(kmMat4* pOut, const kmMat4* pM1, const kmMat4* pM2)
{ {
#if defined(__ARM_NEON__) #if defined(__ARM_NEON__)
float mat[16]; float *mat = pOut->mat;
// Invert column-order with row-order // Invert column-order with row-order
NEON_Matrix4Mul( &pM2->mat[0], &pM1->mat[0], &mat[0] ); NEON_Matrix4Mul( &pM2->mat[0], &pM1->mat[0], &mat[0] );
#else #else
float mat[16]; float *mat = pOut->mat;
const float *m1 = pM1->mat, *m2 = pM2->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 #endif
memcpy(pOut->mat, mat, sizeof(float)*16);
return pOut; return pOut;
} }