FDK/Tools/Programs/public/lib/source/uforead/uforead.c
/* Multiple matices a and b giving result. */
Multiple matices a and b giving result.
Multiple matices a and b giving result .
static void matMult(float *result, float * a, float * b)
{
	result[0] = a[0]*b[0] + a[1]*b[2];
	result[1] = a[0]*b[1] + a[1]*b[3];
	result[2] = a[2]*b[0] + a[3]*b[2];
	result[3] = a[2]*b[1] + a[3]*b[3];
	result[4] = a[4]*b[0] + a[5]*b[2] + b[4];
	result[5] = a[4]*b[1] + a[5]*b[3] + b[5];
}
static void matMult ( float * result , float * a , float * b ) { result [ 0 ] = a [ 0 ] * b [ 0 ] + a [ 1 ] * b [ 2 ] ; result [ 1 ] = a [ 0 ] * b [ 1 ] + a [ 1 ] * b [ 3 ] ; result [ 2 ] = a [ 2 ] * b [ 0 ] + a [ 3 ] * b [ 2 ] ; result [ 3 ] = a [ 2 ] * b [ 1 ] + a [ 3 ] * b [ 3 ] ; result [ 4 ] = a [ 4 ] * b [ 0 ] + a [ 5 ] * b [ 2 ] + b [ 4 ] ; result [ 5 ] = a [ 4 ] * b [ 1 ] + a [ 5 ] * b [ 3 ] + b [ 5 ] ; }
Multiple matices a and b giving result.
Multiple matices a and b giving result .