| commit | eb1f75d198ab66dea81625ec38a0082e971d03eb | [log] [tgz] |
|---|---|---|
| author | Jean-Marc Valin <jean-marc.valin@usherbrooke.ca> | Thu Apr 17 07:50:12 2008 +1000 |
| committer | Jean-Marc Valin <jean-marc.valin@usherbrooke.ca> | Thu Apr 17 07:50:12 2008 +1000 |
| tree | 00ed5f103069cf067bdf35d53476e14c51a19e77 | |
| parent | 309d64204d09e964d5d05dff132f99cc210428a6 [diff] [blame] |
minor simplification in alg_quant()
diff --git a/libcelt/vq.c b/libcelt/vq.c index 5d6799b..1e6b5e1 100644 --- 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