Mercurial > libavcodec.hg
comparison celp_math.h @ 8090:1c07635d7334 libavcodec
Add ff_dot_productf() to celp_math.{c,h}
Part of the QCELP patch by Kenan Gillet, kenan.gillet gmail com
author | vitor |
---|---|
date | Thu, 30 Oct 2008 21:04:17 +0000 |
parents | ecb1962c12f3 |
children | cf4d575b1982 |
comparison
equal
deleted
inserted
replaced
8089:103e41d62781 | 8090:1c07635d7334 |
---|---|
81 { | 81 { |
82 if(offset < 0) return value >> -offset; | 82 if(offset < 0) return value >> -offset; |
83 else return value << offset; | 83 else return value << offset; |
84 } | 84 } |
85 | 85 |
86 /** | |
87 * returns the dot product. | |
88 * @param a input data array | |
89 * @param b input data array | |
90 * @param length number of elements | |
91 * | |
92 * @return dot product = sum of elementwise products | |
93 */ | |
94 extern float ff_dot_productf(const float* a, const float* b, int length); | |
95 | |
86 #endif /* AVCODEC_CELP_MATH_H */ | 96 #endif /* AVCODEC_CELP_MATH_H */ |