diff options
author | Szabolcs Nagy <nsz@port70.net> | 2012-12-11 23:06:20 +0100 |
---|---|---|
committer | Szabolcs Nagy <nsz@port70.net> | 2012-12-11 23:06:20 +0100 |
commit | 482ccd2f7497a79ca83e998f54e823e7cedaaa6e (patch) | |
tree | 0e2e1fd4db0a277ece85e32a23ecc68997404514 /src/math/atan.c | |
parent | 64623cd59a5e72c6322548bca3827a75d5d11918 (diff) | |
download | musl-482ccd2f7497a79ca83e998f54e823e7cedaaa6e.tar.gz |
math: rewrite inverse hyperbolic functions to be simpler/smaller
modifications:
* avoid unsigned->signed integer conversion
* do not handle special cases when they work correctly anyway
* more strict threshold values (0x1p26 instead of 0x1p28 etc)
* smaller code, cleaner branching logic
* same precision as the old code:
acosh(x) has up to 2ulp error in [1,1.125]
asinh(x) has up to 1.6ulp error in [0.125,0.5], [-0.5,-0.125]
atanh(x) has up to 1.7ulp error in [0.125,0.5], [-0.5,-0.125]
Diffstat (limited to 'src/math/atan.c')
0 files changed, 0 insertions, 0 deletions