ref: b417d8392e20acdc0f613a0a3f64bad83e47ea95
parent: 61f40418fab2205c94ed1f113e10677a0679baf4
author: Jean-Marc Valin <[email protected]>
date: Thu Jan 27 12:19:49 EST 2011
Changing some double constants to float
--- a/libcelt/celt.c
+++ b/libcelt/celt.c
@@ -993,7 +993,7 @@
if (gain1 > QCONST16(.6f,15))
gain1 = QCONST16(.6f,15);
- if (ABS16(gain1-st->prefilter_gain)<QCONST16(.1,15))
+ if (ABS16(gain1-st->prefilter_gain)<QCONST16(.1f,15))
gain1=st->prefilter_gain;
#ifdef FIXED_POINT
--- a/libcelt/pitch.c
+++ b/libcelt/pitch.c
@@ -145,7 +145,7 @@
fir(x_lp, lpc, x_lp, len>>1, 4, mem);
mem[0]=0;
- lpc[0]=QCONST16(.8,12);
+ lpc[0]=QCONST16(.8f,12);
fir(x_lp, lpc, x_lp, len>>1, 1, mem);
}
--- a/libcelt/quant_bands.c
+++ b/libcelt/quant_bands.c
@@ -198,7 +198,7 @@
#ifdef FIXED_POINT
f = SHL32(EXTEND32(x),7) - PSHR32(MULT16_16(coef,oldE), 8) - prev[c];
/* Rounding to nearest integer here is really important! */
- qi = (f+QCONST32(.5,DB_SHIFT+7))>>(DB_SHIFT+7);
+ qi = (f+QCONST32(.5f,DB_SHIFT+7))>>(DB_SHIFT+7);
decay_bound = EXTRACT16(MAX32(-QCONST16(28.f,DB_SHIFT),
SUB32((celt_word32)oldEBands[i+c*m->nbEBands],max_decay)));
#else