aboutsummaryrefslogtreecommitdiff
path: root/system/lib/libc/musl/src/math/lgamma.c
diff options
context:
space:
mode:
Diffstat (limited to 'system/lib/libc/musl/src/math/lgamma.c')
-rw-r--r--system/lib/libc/musl/src/math/lgamma.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/system/lib/libc/musl/src/math/lgamma.c b/system/lib/libc/musl/src/math/lgamma.c
new file mode 100644
index 00000000..36006682
--- /dev/null
+++ b/system/lib/libc/musl/src/math/lgamma.c
@@ -0,0 +1,9 @@
+#include <math.h>
+
+extern int signgam;
+double __lgamma_r(double, int *);
+
+double lgamma(double x)
+{
+ return __lgamma_r(x, &signgam);
+}