Skip to content
Snippets Groups Projects
Commit de74fc1b authored by Gregory Maxwell's avatar Gregory Maxwell
Browse files

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

parent 1b58bc74
No related branches found
No related tags found
No related merge requests found
......@@ -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)
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment