aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/celp_math.h
diff options
context:
space:
mode:
authorAurelien Jacobs <aurel@gnuage.org>2008-12-29 17:14:30 +0000
committerReynaldo H. Verdejo Pinochet <reynaldo@opendot.cl>2008-12-29 17:14:30 +0000
commit275131628d12392d6ea40aa63e557290d13088e4 (patch)
treed6e86582261d3312bee309e83c855385fc3e1417 /libavcodec/celp_math.h
parent0a11fc82ae4e488d9802ea15c79711e71813c48a (diff)
downloadffmpeg-275131628d12392d6ea40aa63e557290d13088e4.tar.gz
Remove duplicated dot product code. Use dsputil's
scalarproduct instead. Patch by Aurelien Jacobs. Originally committed as revision 16391 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/celp_math.h')
-rw-r--r--libavcodec/celp_math.h20
1 files changed, 0 insertions, 20 deletions
diff --git a/libavcodec/celp_math.h b/libavcodec/celp_math.h
index 96f4158a4e..7cf7861ca7 100644
--- a/libavcodec/celp_math.h
+++ b/libavcodec/celp_math.h
@@ -51,26 +51,6 @@ int ff_exp2(uint16_t power);
int ff_log2(uint32_t value);
/**
- * returns the dot product.
- * @param a input data array
- * @param b input data array
- * @param length number of elements
- * @param shift right shift by this value will be done after multiplication
- *
- * @return dot product = sum of elementwise products
- */
-static int dot_product(const int16_t* a, const int16_t* b, int length, int shift)
-{
- int sum = 0;
- int i;
-
- for(i=0; i<length; i++)
- sum += (a[i] * b[i]) >> shift;
-
- return sum;
-}
-
-/**
* Shift value left or right depending on sign of offset parameter.
* @param value value to shift
* @param offset shift offset