celp_math: cleanup ff_dot_product()

based on code & idea by vitor

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer
2011-09-29 21:21:26 +02:00
parent 84f8aef40c
commit 11512367d3
3 changed files with 16 additions and 17 deletions

View File

@ -68,11 +68,10 @@ static inline int bidir_sal(int value, int offset)
* @param a input data array
* @param b input data array
* @param length number of elements
* @param shift the result is scaled by 2^shift
*
* @return dot product = sum of elementwise products
*/
int ff_dot_product(const int16_t *a, const int16_t *b, int length, int shift);
int ff_dot_product(const int16_t *a, const int16_t *b, int length);
/**
* returns the dot product.