[FFmpeg-cvslog] g723.1: use MULL(a,b,15) for MULL2()

Michael Niedermayer git at videolan.org
Thu Sep 29 22:09:48 CEST 2011


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Thu Sep 29 21:46:37 2011 +0200| [631eee6e90bafb5baf8dfff5d85bf774d940b1d8] | committer: Michael Niedermayer

g723.1: use MULL(a,b,15) for MULL2()

idea by vitor
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=631eee6e90bafb5baf8dfff5d85bf774d940b1d8
---

 libavcodec/g723_1.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libavcodec/g723_1.c b/libavcodec/g723_1.c
index e3c3b52..0aeea87 100644
--- a/libavcodec/g723_1.c
+++ b/libavcodec/g723_1.c
@@ -324,7 +324,7 @@ static void inverse_quant(int16_t *cur_lsp, int16_t *prev_lsp,
  * @param b 16 bit multiplier
  */
 #define MULL2(a, b) \
-        ((((a) >> 16) * (b) << 1) + (((a) & 0xffff) * (b) >> 15))
+        MULL(a,b,15)
 
 /**
  * Convert LSP frequencies to LPC coefficients.



More information about the ffmpeg-cvslog mailing list