Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
libopus
/
6c8acbf1f2185d2e362df120131ed05d7c6556d3
/
libcelt
/
mathops.h
3806c1d
Relicensing under the simplified (2-clause) BSD license
by Jean-Marc Valin
· 14 years ago
79afa9c
Fixes fixed-point overflow on really low energy
by Jean-Marc Valin
· 14 years ago
736efd6
Fixes some MSVC warnings
by Jean-Marc Valin
· 14 years ago
68242ac
Eliminate the loop when decoding the split angle.
by Timothy B. Terriberry
· 14 years ago
48923ae
Cleanup, de-inlining some math functions
by Jean-Marc Valin
· 14 years ago
c239bd6
removing some warnings
by Jean-Marc Valin
· 14 years ago
6c3788c
Removing old PCL, added plc.h
by Jean-Marc Valin
· 14 years ago
dc68eb2
Comments, code cleanup
by Jean-Marc Valin
· 14 years ago
dc8a6ee
Update the log2 approximation to accomodate the increased bit precision from bd0610d21b28b76095a49e601df44fb792b96369. This requires another term in the power series to reduce the error to the level of truncation (peak absolute error 0.621785). Also refactor the rounding bias term so that further changes to DB_SHIFT will leave the result unbiased.
by Timothy B. Terriberry
· 15 years ago
bd0610d
Increasing log energy resolution
by Jean-Marc Valin
· 15 years ago
5ed24f8
celt_ilog2() is only used in fixed-point mode
by Jean-Marc Valin
· 15 years ago
8c7bb4c
Expose the normalized range for reciprocal square roots in fixed-point mode. This allows subsequnt calculations to use the full precision of the result.
by Timothy Terriberry
· 15 years ago
a9ffc14
Enhancements the fixed-point approximations of non-linear functions.
by Timothy B. Terriberry
· 15 years ago
4a275d4
Accuracy improvements to the fixed-point celt_rsqrt().
by Timothy B. Terriberry
· 15 years ago
234969c
Removed the _t from all the celt*_t types to avoid clashing with POSIX
by Jean-Marc Valin
· 15 years ago
8b2ff0d
Updated copyright notices
by Jean-Marc Valin
· 15 years ago
30f7f81
Changed all the celt*int*_t types to remove the _t suffix, which is reserved
by Jean-Marc Valin
· 15 years ago
ece2cfa
removed useless comments
by Jean-Marc Valin
· 15 years ago
b92dce3
Additional mathops.h tests.
by Gregory Maxwell
· 15 years ago
9dff021
Minor stuff: preventing float underflow in celt_exp2(), preventing the use of
by Jean-Marc Valin
· 15 years ago
f1ce900
float approximations for log2() and exp2()
by Jean-Marc Valin
· 15 years ago
d8dcd24
This simplifies the energy quantisation by converting to the log2() scale
by Jean-Marc Valin
· 15 years ago
ca53b7c
Squashed commit of the following:
by Jean-Marc Valin
· 16 years ago
5c3bc67
Fixed a bunch of fixed-point overflows on insanely hot signals by changing
by Jean-Marc Valin
· 16 years ago
558c50e
optimisation: Making it clear to the compiler that many of the loops in cwrs
by Jean-Marc Valin
· 17 years ago
d568303
optimisation: simplified the "full gain" case of alg_quant() to remove some
by Jean-Marc Valin
· 17 years ago
98c86c7
Trying to clean up celt_ilog2() vs. EC_ILOG a bit.
by Jean-Marc Valin
· 17 years ago
189acec
optimisation: defined a reciprocal square root (celt_rsqrt) for use in
by Jean-Marc Valin
· 17 years ago
ac72c28
oops. find_max32() now uses VERY_LARGE32 (instead of VERY_LARGE16)
by Jean-Marc Valin
· 17 years ago
44c6335
optimisations: Another bunch of simplifications to alg_quant(), mainly to
by Jean-Marc Valin
· 17 years ago
4913438
optimisations: caching sign of x in alg_quant(), changed celt_div()/celt_rcp()
by Jean-Marc Valin
· 17 years ago
17ad401
defined find_max16 and overrode it for C55x
by Jean-Marc Valin
· 17 years ago
dc767f6
No longer trying to save bits when encoding integers near the upper limit
by Jean-Marc Valin
· 17 years ago
2282383
fixed-point: added cheap celt_div() division using a reciprocal
by Jean-Marc Valin
· 17 years ago
9901cb9
fixed-point: defined celt_maxabs16() as basic operator
by Jean-Marc Valin
· 17 years ago
83006ee
fixed-point: using TI intrinsic for celt_ilog2() if available.
by Jean-Marc Valin
· 17 years ago
4ff068e
Some work on assertions.
by Jean-Marc Valin
· 17 years ago
15b9be3
fixed-point: playing it safe. SHL32() now automatically casts input to 32-bit
by Jean-Marc Valin
· 17 years ago
19ae9fc
fixed-point: simplifying the arithmetic in alg_quant()
by Jean-Marc Valin
· 17 years ago
3ec78b1
More accurate sqrt approximation using MULT16_16_Q15() instead of Q14.
by Jean-Marc Valin
· 17 years ago
887ad9f
Increased accuracy of the reciprocal approximation and made it use
by Jean-Marc Valin
· 17 years ago
931db72
Defined the celt_rcp() reciprocal approximation
by Jean-Marc Valin
· 17 years ago
68b02b1
fixed-point: copied the exp2 implementation from Speex, using it for dB2Amp()
by Jean-Marc Valin
· 17 years ago
2eaba8a
fixed-point: log approximation
by Jean-Marc Valin
· 17 years ago
3ca9b1d
fixed-point: Moved sqrt and cos approximations to mathops.h
by Jean-Marc Valin
· 17 years ago