@@ -0,0 +1,16 @@
+#include <math.h>
+
+// FIXME: use lanczos approximation
+double __lgamma_r(double, int *);
+double tgamma(double x)
+{
+ int sign;
+ double y;
+ y = exp(__lgamma_r(x, &sign));
+ if (sign < 0)
+ y = -y;
+ return y;
+}
+float __lgammaf_r(float, int *);
+float tgammaf(float x)
+ float y;
+ y = exp(__lgammaf_r(x, &sign));