1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

ff_dot_product(): change return value to int64_t

Idea-by: Vitor
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2011-10-01 23:09:48 +02:00
parent edf1a8e361
commit 78f08c06e6
2 changed files with 2 additions and 2 deletions

View File

@ -197,7 +197,7 @@ int ff_log2(uint32_t value)
return (power_int << 15) + 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; int i;
int64_t sum = 0; int64_t sum = 0;

View File

@ -71,7 +71,7 @@ static inline int bidir_sal(int value, int offset)
* *
* @return dot product = sum of elementwise products * @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. * returns the dot product.