diff options
author | Jean-Marc Valin <jean-marc.valin@usherbrooke.ca> | 2010-06-21 08:13:35 +0400 |
---|---|---|
committer | Jean-Marc Valin <jean-marc.valin@usherbrooke.ca> | 2010-06-21 08:13:35 +0400 |
commit | 79e67434981d44fdbdd73a5d8e15fe0164257c90 (patch) | |
tree | e17b55e4383c136885cba76970a56e667de551d4 /tests | |
parent | 6c3788cb536c519fe5cee63f63c706a07c47fc62 (diff) |
Fixed testcase
Diffstat (limited to 'tests')
-rw-r--r-- | tests/mathops-test.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/mathops-test.c b/tests/mathops-test.c index dd48baa..ca1ef34 100644 --- a/tests/mathops-test.c +++ b/tests/mathops-test.c @@ -151,10 +151,10 @@ void testexp2log2(void) celt_word32 x; for (x=8;x<65536;x+=(x>>3)) { - float error = fabs(x-0.25*celt_exp2(celt_log2(x)<<3))/16384; + float error = fabs(x-0.25*celt_exp2(celt_log2(x)<<1))/16384; if (error>0.004) { - fprintf (stderr, "celt_log2/celt_exp2 failed: fabs(x-(celt_log2(celt_exp2(x))))>0.001 (x = %ld, error = %f)\n", (long)x,error); + fprintf (stderr, "celt_log2/celt_exp2 failed: fabs(x-(celt_exp2(celt_log2(x))))>0.001 (x = %ld, error = %f)\n", (long)x,error); ret = 1; } } |