Commit 78f08c06 authored by Michael Niedermayer's avatar Michael Niedermayer

ff_dot_product(): change return value to int64_t

Idea-by: Vitor
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent edf1a8e3
......@@ -197,7 +197,7 @@ int ff_log2(uint32_t value)
return (power_int << 15) + value;
}
int ff_dot_product(const int16_t *a, const int16_t *b, int length)
int64_t ff_dot_product(const int16_t *a, const int16_t *b, int length)
{
int i;
int64_t sum = 0;
......
......@@ -71,7 +71,7 @@ static inline int bidir_sal(int value, int offset)
*
* @return dot product = sum of elementwise products
*/
int ff_dot_product(const int16_t *a, const int16_t *b, int length);
int64_t ff_dot_product(const int16_t *a, const int16_t *b, int length);
/**
* returns the dot product.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment