diff options
author | Gregory Maxwell <greg@xiph.org> | 2012-08-19 19:42:49 -0400 |
---|---|---|
committer | Gregory Maxwell <greg@xiph.org> | 2012-08-19 19:42:49 -0400 |
commit | de74fc1b6b46b4d3a11af2efabfb54f813042664 (patch) | |
tree | 33fc6ed7a50c0da04cedc53d74a17a7b0f5a946d /celt/tests | |
parent | 1b58bc7495fbabab0a0e04a54f5304320c127c6e (diff) | |
download | opus-de74fc1b6b46b4d3a11af2efabfb54f813042664.tar.gz |
Remove C99ism in celt/tests/test_unit_mathops.c w/ fixed point build.
Diffstat (limited to 'celt/tests')
-rw-r--r-- | celt/tests/test_unit_mathops.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/celt/tests/test_unit_mathops.c b/celt/tests/test_unit_mathops.c index 9673de6c..ea0af493 100644 --- a/celt/tests/test_unit_mathops.c +++ b/celt/tests/test_unit_mathops.c @@ -209,13 +209,16 @@ void testilog2(void) 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) { |