shithub: opus

Download patch

ref: ea245c5ca9414c695dca99ad8e4edf183fae9ce9
parent: 4424b5a80359bbf68491d0f6429c53b45511988f
author: Jean-Marc Valin <[email protected]>
date: Tue Jul 6 16:25:54 EDT 2010

Fixed C99-style declaration

--- a/libcelt/vq.c
+++ b/libcelt/vq.c
@@ -370,6 +370,9 @@
 celt_word16 renormalise_vector(celt_norm *X, celt_word16 value, int N, int stride)
 {
    int i;
+#ifdef FIXED_POINT
+   int k;
+#endif
    celt_word32 E = EPSILON;
    celt_word16 g;
    celt_word32 t;
@@ -380,7 +383,7 @@
       xptr += stride;
    }
 #ifdef FIXED_POINT
-   int k = celt_ilog2(E)>>1;
+   k = celt_ilog2(E)>>1;
 #endif
    t = VSHR32(E, (k-7)<<1);
    g = MULT16_16_Q15(value, celt_rsqrt_norm(t));