diff options
Diffstat (limited to 'newlib/libm/mathfp/erf_gamma.c')
-rw-r--r-- | newlib/libm/mathfp/erf_gamma.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/newlib/libm/mathfp/erf_gamma.c b/newlib/libm/mathfp/erf_gamma.c index 246645d25..96e8c46ab 100644 --- a/newlib/libm/mathfp/erf_gamma.c +++ b/newlib/libm/mathfp/erf_gamma.c @@ -16,7 +16,7 @@ /* gammaf_r(x, signgamp) * Reentrant version of the logarithm of the Gamma function - * with user provided pointer for the sign of Gamma(x). + * with user provide pointer for the sign of Gamma(x). * * Method: See lgammaf_r */ @@ -30,10 +30,5 @@ float x; int *signgamp; #endif { - return expf (lgammaf_r(x,signgamp)); -} - -float gammaf(float x) -{ - return gammaf_r(x, &(_REENT_SIGNGAM(_REENT))); + return lgammaf_r(x,signgamp); } |