X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fmath%2Ftgammaf.c;h=b4ca51c9f7a862f0747d3c33e25a9063b4ded981;hb=5652d70054daf3c2c9b6d475fdf9d24a940e51aa;hp=16df80762be2473486f8cc1ed0d0de6e33527610;hpb=bbfbc7edaf992abe1d3d09868be07c4c1cc44db7;p=musl diff --git a/src/math/tgammaf.c b/src/math/tgammaf.c index 16df8076..b4ca51c9 100644 --- a/src/math/tgammaf.c +++ b/src/math/tgammaf.c @@ -1,16 +1,6 @@ #include -// FIXME: use lanczos approximation - -float __lgammaf_r(float, int *); - float tgammaf(float x) { - int sign; - float y; - - y = exp(__lgammaf_r(x, &sign)); - if (sign < 0) - y = -y; - return y; + return tgamma(x); }