ref: a1d95d70ca6d2017e7146a512e8425b82df465fc
parent: 03892c18d4096111cd904531e84268d45478fe75
author: Jean-Marc Valin <[email protected]>
date: Fri Mar 7 12:33:58 EST 2008
fixed-point: removed the last float op in celt.c
--- a/libcelt/celt.c
+++ b/libcelt/celt.c
@@ -324,7 +324,7 @@
}
/* Check if we can safely use the pitch (i.e. effective gain isn't too high) */
- if (curr_power + 1e5f*(1.f/SHL16(1,8)) < 10.f*pitch_power)
+ if (MULT16_32_Q15(QCONST16(.1f, 15),curr_power) + SHR16(10000,8) < pitch_power)
{
/* Normalise the pitch vector as well (discard the energies) */
VARDECL(celt_ener_t *bandEp);