shithub: opus

Download patch

ref: eb1f75d198ab66dea81625ec38a0082e971d03eb
parent: 309d64204d09e964d5d05dff132f99cc210428a6
author: Jean-Marc Valin <[email protected]>
date: Thu Apr 17 03:50:12 EDT 2008

minor simplification in alg_quant()

--- a/libcelt/vq.c
+++ b/libcelt/vq.c
@@ -209,7 +209,7 @@
             /* score = 2*g*Rxy - g*g*Ryy;*/
 #ifdef FIXED_POINT
             /* No need to multiply Rxy by 2 because we did it earlier */
-            num = EXTRACT16(SHR32(MULT16_16(SUB16(Rxy,g),g),15));
+            num = MULT16_16_Q15(SUB16(Rxy,g),g);
 #else
             num = g*(2*Rxy-g);
 #endif