Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2004-02-11 03:47:52 +0300
committerChristopher Faylor <me@cgf.cx>2004-02-11 03:47:52 +0300
commit0ccf5430f2abac4a7d4242dfb309c5fb27b4f79d (patch)
treeea7f491a21c73b8d0afa07eec451c88c00dff7ed /newlib/libm/mathfp/er_gamma.c
parent6dbfb93a04322cfb0320210b7a6c0bbd8c36548b (diff)
* libm/mathfp/er_gamma.c (gamma): Add new non-reentrant function.
* libm/mathfp/er_lgamma.c (lgamma): Ditto. * libm/mathfp/erf_gamma.c (gammaf): Ditto. * libm/mathfp/erf_lgamma.c (lgammaf): Ditto.
Diffstat (limited to 'newlib/libm/mathfp/er_gamma.c')
-rw-r--r--newlib/libm/mathfp/er_gamma.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/newlib/libm/mathfp/er_gamma.c b/newlib/libm/mathfp/er_gamma.c
index 63758bb43..0060ed031 100644
--- a/newlib/libm/mathfp/er_gamma.c
+++ b/newlib/libm/mathfp/er_gamma.c
@@ -30,3 +30,8 @@
{
return exp (lgamma_r(x,signgamp));
}
+
+double gamma(double x)
+{
+ return gamma_r(x, &(_REENT_SIGNGAM(_REENT)));
+}