Adding "restrict" keyword to Mtx_Multiply().
This commit is contained in:
parent
31b9f14058
commit
6529a84301
@ -278,7 +278,7 @@ void Mtx_Identity(C3D_Mtx* out);
|
|||||||
* @param[in] a Multiplicand
|
* @param[in] a Multiplicand
|
||||||
* @param[in] b Multiplier
|
* @param[in] b Multiplier
|
||||||
*/
|
*/
|
||||||
void Mtx_Multiply(C3D_Mtx* out, const C3D_Mtx* a, const C3D_Mtx* b);
|
void Mtx_Multiply(C3D_Mtx* restrict out, const C3D_Mtx* a, const C3D_Mtx* b);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Inverse a matrix
|
* @brief Inverse a matrix
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
#include <c3d/maths.h>
|
#include <c3d/maths.h>
|
||||||
|
|
||||||
void Mtx_Multiply(C3D_Mtx* out, const C3D_Mtx* a, const C3D_Mtx* b)
|
void Mtx_Multiply(C3D_Mtx* restrict out, const C3D_Mtx* a, const C3D_Mtx* b)
|
||||||
{
|
{
|
||||||
// http://www.wolframalpha.com/input/?i={{a,b,c,d},{e,f,g,h},{i,j,k,l},{m,n,o,p}}{{α,β,γ,δ},{ε,θ,ι,κ},{λ,μ,ν,ξ},{ο,π,ρ,σ}}
|
// http://www.wolframalpha.com/input/?i={{a,b,c,d},{e,f,g,h},{i,j,k,l},{m,n,o,p}}{{α,β,γ,δ},{ε,θ,ι,κ},{λ,μ,ν,ξ},{ο,Ï€,Ï<>,σ}}
|
||||||
int i, j;
|
int i, j;
|
||||||
for (j = 0; j < 4; ++j)
|
for (j = 0; j < 4; ++j)
|
||||||
for (i = 0; i < 4; ++i)
|
for (i = 0; i < 4; ++i)
|
||||||
|
Loading…
Reference in New Issue
Block a user