diff options
author | Szabolcs Nagy <nsz@port70.net> | 2012-12-12 01:43:43 +0100 |
---|---|---|
committer | Szabolcs Nagy <nsz@port70.net> | 2012-12-12 01:43:43 +0100 |
commit | 0f53c1a4266ad4cca28115e2c3bcfdc86337d8ca (patch) | |
tree | 4dbe18341f662914d8fd916f1f38549444478589 /crt | |
parent | 14cc9c7f38c80094c05353fcb11fe9e441340583 (diff) | |
download | musl-0f53c1a4266ad4cca28115e2c3bcfdc86337d8ca.tar.gz musl-0f53c1a4266ad4cca28115e2c3bcfdc86337d8ca.tar.xz musl-0f53c1a4266ad4cca28115e2c3bcfdc86337d8ca.zip |
math: add a non-dummy tgamma implementation
uses the lanczos approximation method with the usual tweaks. same parameters were selected as in boost and python. (avoides some extra work and special casing found in boost so the precision is not that good: measured error is <5ulp for positive x and <10ulp for negative) an alternative lgamma_r implementation is also given in the same file which is simpler and smaller than the current one, but less precise so it's ifdefed out for now.
Diffstat (limited to 'crt')
0 files changed, 0 insertions, 0 deletions