about summary refs log tree commit diff
path: root/src/math/tgammaf.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/math/tgammaf.c')
-rw-r--r--src/math/tgammaf.c12
1 files changed, 1 insertions, 11 deletions
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 <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);
 }