9f759236eb
From-SVN: r35084
12 lines
142 B
C
12 lines
142 B
C
short
|
|
inner_product (short *a, short *b)
|
|
{
|
|
int i;
|
|
short sum = 0;
|
|
|
|
for (i = 9; i >= 0; i--)
|
|
sum += (*a++) * (*b++);
|
|
|
|
return sum;
|
|
}
|