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:
parent
edf1a8e361
commit
78f08c06e6
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user