shithub: opus

Download patch

ref: de74fc1b6b46b4d3a11af2efabfb54f813042664
parent: 1b58bc7495fbabab0a0e04a54f5304320c127c6e
author: Gregory Maxwell <[email protected]>
date: Sun Aug 19 15:42:49 EDT 2012

Remove C99ism in celt/tests/test_unit_mathops.c w/ fixed point build.

--- a/celt/tests/test_unit_mathops.c
+++ b/celt/tests/test_unit_mathops.c
@@ -209,13 +209,16 @@
    opus_val32 x;
    for (x=1;x<=268435455;x+=127)
    {
-      opus_val32 lg = celt_ilog2(x);
+      opus_val32 lg;
+      opus_val32 y;
+
+      lg = celt_ilog2(x);
       if (lg<0 || lg>=31)
       {
          printf("celt_ilog2 failed: 0<=celt_ilog2(x)<31 (x = %d, celt_ilog2(x) = %d)\n",x,lg);
          ret = 1;
       }
-      opus_val32 y = 1<<lg;
+      y = 1<<lg;
 
       if (x<y || (x>>1)>=y)
       {