g723.1: use MULL(a,b,15) for MULL2()
authorMichael Niedermayer <michaelni@gmx.at>
Thu, 29 Sep 2011 19:46:37 +0000 (21:46 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Thu, 29 Sep 2011 19:46:37 +0000 (21:46 +0200)
idea by vitor
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/g723_1.c

index e3c3b52..0aeea87 100644 (file)
@@ -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.