C++ and C compiling errors depending on installed compilers. Used __restrict to allow GCC extension to work.
This commit is contained in:
parent
004aa86e16
commit
dd546051dc
@ -296,7 +296,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* restrict 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,6 +1,6 @@
|
|||||||
#include <c3d/maths.h>
|
#include <c3d/maths.h>
|
||||||
|
|
||||||
void Mtx_Multiply(C3D_Mtx* restrict 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;
|
||||||
|
Loading…
Reference in New Issue
Block a user