From a1d95d70ca6d2017e7146a512e8425b82df465fc Mon Sep 17 00:00:00 2001 From: Jean-Marc Valin Date: Fri, 7 Mar 2008 17:33:58 +1100 Subject: [PATCH] fixed-point: removed the last float op in celt.c --- libcelt/celt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libcelt/celt.c b/libcelt/celt.c index 16983d45..0e324317 100644 --- a/libcelt/celt.c +++ b/libcelt/celt.c @@ -324,7 +324,7 @@ int celt_encode(CELTEncoder *st, celt_int16_t *pcm, unsigned char *compressed, i } /* 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);