Fixed C99-style declaration

This commit is contained in:
Jean-Marc Valin 2010-07-06 20:25:54 -04:00
parent 4424b5a803
commit ea245c5ca9

View file

@ -370,6 +370,9 @@ void alg_unquant(celt_norm *X, int N, int K, int spread, celt_norm *lowband, ec_
celt_word16 renormalise_vector(celt_norm *X, celt_word16 value, int N, int stride) celt_word16 renormalise_vector(celt_norm *X, celt_word16 value, int N, int stride)
{ {
int i; int i;
#ifdef FIXED_POINT
int k;
#endif
celt_word32 E = EPSILON; celt_word32 E = EPSILON;
celt_word16 g; celt_word16 g;
celt_word32 t; celt_word32 t;
@ -380,7 +383,7 @@ celt_word16 renormalise_vector(celt_norm *X, celt_word16 value, int N, int strid
xptr += stride; xptr += stride;
} }
#ifdef FIXED_POINT #ifdef FIXED_POINT
int k = celt_ilog2(E)>>1; k = celt_ilog2(E)>>1;
#endif #endif
t = VSHR32(E, (k-7)<<1); t = VSHR32(E, (k-7)<<1);
g = MULT16_16_Q15(value, celt_rsqrt_norm(t)); g = MULT16_16_Q15(value, celt_rsqrt_norm(t));