diff options
author | Jean-Marc Valin <Jean-Marc.Valin@csiro.au> | 2008-03-26 07:56:07 +0300 |
---|---|---|
committer | Jean-Marc Valin <Jean-Marc.Valin@csiro.au> | 2008-03-26 07:56:07 +0300 |
commit | 385795ed7bbe22e9f0c4ddbc314fe16b88e6ae4e (patch) | |
tree | af87270b6d1a1476d31b74c6d522614e182792d8 /tests | |
parent | 233e3172027f093be841363fc8ca5afaace6256e (diff) |
Fixed the rcp() testcase for new assumptions (x is positive)
Diffstat (limited to 'tests')
-rw-r--r-- | tests/mathops-test.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/mathops-test.c b/tests/mathops-test.c index 0a54126..dc208da 100644 --- a/tests/mathops-test.c +++ b/tests/mathops-test.c @@ -17,12 +17,10 @@ int ret = 0; void testdiv(void) { celt_int32_t i; - for (i=-327670;i<=327670;i++) + for (i=1;i<=327670;i++) { double prod; celt_word32_t val; - if (i==0) - continue; val = celt_rcp(i); #ifdef FIXED_POINT prod = (1./32768./65526.)*val*i; @@ -59,5 +57,5 @@ int main(void) { testdiv(); testsqrt(); - return 0; + return ret; } |