diff options
author | Christopher Faylor <me@cgf.cx> | 2003-12-05 06:13:44 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2003-12-05 06:13:44 +0000 |
commit | 576593dd7233945479f9689059d527401a7cea96 (patch) | |
tree | e000677cbc4213937a22de44e5d2f463d21b8c1e /newlib/libm | |
parent | 4c889d629d2d1deca5f402054bfb76203197172d (diff) | |
download | newlib-576593dd7233945479f9689059d527401a7cea96.zip newlib-576593dd7233945479f9689059d527401a7cea96.tar.gz newlib-576593dd7233945479f9689059d527401a7cea96.tar.bz2 |
* libc/stdlib/mbrlen.c: Change include order to prevent compiler errors when
defining _mbrtowc.
* libc/stdlib/mbsinit.c: Ditto.
* libc/stdlib/mbsrtowcs.c: Ditto.
* libc/stdlib/wcrtomb.c: Ditto.
* libc/stdlib/wcsrtombs.c: Ditto.
* libc/stdlib/wctob.c: Ditto.
* libc/stdlib/mbrlen.c: Change include order to prevent compiler errors when
defining _mbrtowc.
* libc/stdlib/mbsinit.c: Ditto.
* libc/stdlib/mbsrtowcs.c: Ditto.
Diffstat (limited to 'newlib/libm')
-rw-r--r-- | newlib/libm/mathfp/er_gamma.c | 5 | ||||
-rw-r--r-- | newlib/libm/mathfp/er_lgamma.c | 6 | ||||
-rw-r--r-- | newlib/libm/mathfp/erf_gamma.c | 7 | ||||
-rw-r--r-- | newlib/libm/mathfp/erf_lgamma.c | 5 |
4 files changed, 22 insertions, 1 deletions
diff --git a/newlib/libm/mathfp/er_gamma.c b/newlib/libm/mathfp/er_gamma.c index 63758bb..0060ed0 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))); +} diff --git a/newlib/libm/mathfp/er_lgamma.c b/newlib/libm/mathfp/er_lgamma.c index 65d6002..fd49c25 100644 --- a/newlib/libm/mathfp/er_lgamma.c +++ b/newlib/libm/mathfp/er_lgamma.c @@ -422,3 +422,9 @@ static double zero= 0.00000000000000000000e+00; if(hx<0) r = nadj - r; return r; } + +double +lgamma(double x) +{ + return lgamma_r(x, &(_REENT_SIGNGAM(_REENT))); +} diff --git a/newlib/libm/mathfp/erf_gamma.c b/newlib/libm/mathfp/erf_gamma.c index 16be0d0..246645d 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 provide pointer for the sign of Gamma(x). + * with user provided pointer for the sign of Gamma(x). * * Method: See lgammaf_r */ @@ -32,3 +32,8 @@ { return expf (lgammaf_r(x,signgamp)); } + +float gammaf(float x) +{ + return gammaf_r(x, &(_REENT_SIGNGAM(_REENT))); +} diff --git a/newlib/libm/mathfp/erf_lgamma.c b/newlib/libm/mathfp/erf_lgamma.c index 64bec0a..4f09214 100644 --- a/newlib/libm/mathfp/erf_lgamma.c +++ b/newlib/libm/mathfp/erf_lgamma.c @@ -244,3 +244,8 @@ static float zero= 0.0000000000e+00; if(hx<0) r = nadj - r; return r; } + +float lgammaf(float x) +{ + return lgammaf_r(x, &(_REENT_SIGNGAM(_REENT))); +} |