Jean-Marc Valin
293b9f1977
Fixing tests on machines with no __builtin_clz()
2010-09-13 14:53:29 -04:00
Jean-Marc Valin
48923ae996
Cleanup, de-inlining some math functions
2010-07-23 17:28:50 -04:00
Jean-Marc Valin
79e6743498
Fixed testcase
2010-06-21 00:13:35 -04:00
Jean-Marc Valin
6c3788cb53
Removing old PCL, added plc.h
2010-06-20 23:01:33 -04:00
Timothy B. Terriberry
a9ffc14ab7
Enhancements the fixed-point approximations of non-linear functions.
...
Accuracy for rsqrt, rcp, cos, and log2 is now at the level of truncation error
for the current output resolution of these functions.
sqrt and exp2 still have non-trivial algebraic error, but this cannot be
reduced much further using the current method without additional computation.
Also updates the fast float approximations for log2 and exp2 with coefficients
that give slightly lower maximum relative error.
Patch modified by Jean-Marc Valin to leave the cos approximation as is and
leave the check for x<-15 in exp2 as is.
2009-10-21 20:30:46 -04:00
Jean-Marc Valin
234969c903
Removed the _t from all the celt*_t types to avoid clashing with POSIX
2009-10-17 22:12:42 -04:00
Jean-Marc Valin
30f7f813ea
Changed all the celt*int*_t types to remove the _t suffix, which is reserved
...
by POSIX. The other _t types that are not part of the API are still there
for now. Also, got rid of all that was left of the 64-bit types.
2009-10-17 14:35:13 -04:00
Gregory Maxwell
7c422653f3
Fix compilation of test cases with fixed-debug enabled
2009-07-01 03:50:44 -04:00
Gregory Maxwell
b92dce3270
Additional mathops.h tests.
2009-06-28 19:51:30 -04:00
Jean-Marc Valin
5a7d9b2c62
Fixed rsqrt testcase for float
2008-04-05 14:36:05 +10:00
Jean-Marc Valin
189acec5d3
optimisation: defined a reciprocal square root (celt_rsqrt) for use in
...
find_spectral_pitch instead of using celt_rcp(celt_sqrt(x))
2008-03-26 16:42:42 +11:00
Jean-Marc Valin
385795ed7b
Fixed the rcp() testcase for new assumptions (x is positive)
2008-03-26 15:56:07 +11:00
Jean-Marc Valin
a82dfdd240
Adjusting/fixing warnings
2008-03-13 23:01:55 +11:00
Jean-Marc Valin
92518982cc
Added mathops-test
2008-03-13 17:20:08 +11:00