Re-enables test cases, including the rotation test

This commit is contained in:
Jean-Marc Valin 2011-08-05 10:47:41 -04:00
parent b91d00d1e2
commit bf6a4e01b6
6 changed files with 18 additions and 56 deletions

View file

@ -134,7 +134,7 @@ void testexp2log2(void)
opus_val32 x;
for (x=8;x<65536;x+=(x>>3))
{
float error = fabs(x-0.25*celt_exp2(celt_log2(x)<<1))/16384;
float error = fabs(x-0.25*celt_exp2(celt_log2(x)))/16384;
if (error>0.004)
{
fprintf (stderr, "celt_log2/celt_exp2 failed: fabs(x-(celt_exp2(celt_log2(x))))>0.001 (x = %ld, error = %f)\n", (long)x,error);