math: add a non-dummy tgamma implementation
[musl] / src / math / tgammaf.c
index 16df807..b4ca51c 100644 (file)
@@ -1,16 +1,6 @@
 #include <math.h>
 
-// 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);
 }