diff options
author | Szabolcs Nagy <nsz@port70.net> | 2012-12-16 19:23:51 +0100 |
---|---|---|
committer | Szabolcs Nagy <nsz@port70.net> | 2012-12-16 19:23:51 +0100 |
commit | 1aec620f9366c29d761fe42b3e02bd8024685db3 (patch) | |
tree | acc8bf057796851982e830b9ad1265d4b5dacab3 /src/math/sinhl.c | |
parent | math: x86_64 version of expl, fixed some comments in the i386 version (diff) | |
download | grovel-1aec620f9366c29d761fe42b3e02bd8024685db3.tar.gz grovel-1aec620f9366c29d761fe42b3e02bd8024685db3.tar.xz |
math: finished cosh.c cleanup
changed the algorithm: large input is not special cased
(when exp(-x) is small compared to exp(x))
and the threshold values are reevaluated
(fdlibm code had a log(2)/2 cutoff for which i could not find
justification, log(2) seems to be a better threshold and this
was verified empirically)
the new code is simpler, makes smaller binaries and should be
faster for common cases
the old comments were removed as they are no longer true for the
new algorithm and the fdlibm copyright was dropped as well
because there is no common code or idea with the original anymore
except for trivial ones.
Diffstat (limited to 'src/math/sinhl.c')
0 files changed, 0 insertions, 0 deletions