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.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'libavcodec/celp_math.c') diff --git a/libavcodec/celp_math.c b/libavcodec/celp_math.c index 9fa7dfc70d..df05917d20 100644 --- a/libavcodec/celp_math.c +++ b/libavcodec/celp_math.c @@ -195,3 +195,14 @@ int ff_log2(uint32_t value) return (power_int << 15) + value; } + +float ff_dot_productf(const float* a, const float* b, int length) +{ + float sum = 0; + int i; + + for(i=0; i