From 0bc484ad51f5c85a3c1298a718355724905cdd6b Mon Sep 17 00:00:00 2001 From: Kenan Gillet Date: Thu, 30 Oct 2008 21:04:17 +0000 Subject: Add ff_dot_productf() to celp_math.{c,h} Part of the QCELP patch by Kenan Gillet, kenan.gillet gmail com Originally committed as revision 15753 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/celp_math.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'libavcodec/celp_math.h') diff --git a/libavcodec/celp_math.h b/libavcodec/celp_math.h index 029b5310af..ce0726fba1 100644 --- a/libavcodec/celp_math.h +++ b/libavcodec/celp_math.h @@ -83,4 +83,14 @@ static inline int bidir_sal(int value, int offset) else return value << offset; } +/** + * returns the dot product. + * @param a input data array + * @param b input data array + * @param length number of elements + * + * @return dot product = sum of elementwise products + */ +extern float ff_dot_productf(const float* a, const float* b, int length); + #endif /* AVCODEC_CELP_MATH_H */ -- cgit v1.2.3