Published on *freevec.org* (http://www.freevec.org)

Submitted by markos on Sat, 02/02/2008 - 03:54

Let's assume we want to do addition or substraction of 2 4x4 32-bit float matrices. First step is to load the arrays. We will assume that the arrays are 16-byte aligned (all/most SIMD engines require this) which will also give a nice boost. Let's assume we have the following typedef:

Tags:

**Links**

[1] http://www.freevec.org/function/matrix_4x4_additionsubtraction_floats

[2] http://www.freevec.org/category/simd/architecture/altivec

[3] http://www.freevec.org/category/simd/algorithms/algebra/matrix

[4] http://www.freevec.org/category/simd/float

[5] http://www.freevec.org/category/simd/addition

[6] http://www.freevec.org/category/simd/subtraction