diff options
author | nsz <nsz@port70.net> | 2012-03-15 09:29:53 +0100 |
---|---|---|
committer | nsz <nsz@port70.net> | 2012-03-15 09:29:53 +0100 |
commit | 40305f74bd70a575ce73260227ed3b64e0625b13 (patch) | |
tree | d063e1abd6b7b77d008a867c2af984ef6c0a64b5 | |
parent | 0144b45b71c0b78055b311fe3e7408fee71eb0c1 (diff) | |
download | musl-40305f74bd70a575ce73260227ed3b64e0625b13.tar.gz musl-40305f74bd70a575ce73260227ed3b64e0625b13.tar.bz2 musl-40305f74bd70a575ce73260227ed3b64e0625b13.tar.xz musl-40305f74bd70a575ce73260227ed3b64e0625b13.zip |
in math.h make lgamma_r and non-double bessel _GNU_SOURCE only
long double and float bessel functions are no longer xsi extensions
-rw-r--r-- | include/math.h | 38 | ||||
-rw-r--r-- | src/math/lgamma.c | 1 | ||||
-rw-r--r-- | src/math/lgammaf.c | 1 | ||||
-rw-r--r-- | src/math/lgammal.c | 1 |
4 files changed, 21 insertions, 20 deletions
diff --git a/include/math.h b/include/math.h index b9139b02..9c06c967 100644 --- a/include/math.h +++ b/include/math.h @@ -349,33 +349,13 @@ double gamma(double); float gammaf(float); long double gammal(long double); -double lgamma_r(double, int*); -float lgammaf_r(float, int*); -long double lgammal_r(long double, int*); - double j0(double); -float j0f(float); -long double j0l(long double); - double j1(double); -float j1f(float); -long double j1l(long double); - double jn(int, double); -float jnf(int, float); -long double jnl(int, long double); double y0(double); -float y0f(float); -long double y0l(long double); - double y1(double); -float y1f(float); -long double y1l(long double); - double yn(int, double); -float ynf(int, float); -long double ynl(int, long double); #endif #ifdef _GNU_SOURCE @@ -386,6 +366,24 @@ long double scalbl(long double, long double); void sincos(double, double*, double*); void sincosf(float, float*, float*); void sincosl(long double, long double*, long double*); + +double lgamma_r(double, int*); +float lgammaf_r(float, int*); +long double lgammal_r(long double, int*); + +float j0f(float); +long double j0l(long double); +float j1f(float); +long double j1l(long double); +float jnf(int, float); +long double jnl(int, long double); + +float y0f(float); +long double y0l(long double); +float y1f(float); +long double y1l(long double); +float ynf(int, float); +long double ynl(int, long double); #endif #ifdef __cplusplus diff --git a/src/math/lgamma.c b/src/math/lgamma.c index d12462b9..9af7eee4 100644 --- a/src/math/lgamma.c +++ b/src/math/lgamma.c @@ -1,3 +1,4 @@ +#define _GNU_SOURCE #include "libm.h" double lgamma(double x) diff --git a/src/math/lgammaf.c b/src/math/lgammaf.c index f50f2379..aed98ba4 100644 --- a/src/math/lgammaf.c +++ b/src/math/lgammaf.c @@ -1,3 +1,4 @@ +#define _GNU_SOURCE #include "libm.h" float lgammaf(float x) diff --git a/src/math/lgammal.c b/src/math/lgammal.c index 603477c9..a33707ad 100644 --- a/src/math/lgammal.c +++ b/src/math/lgammal.c @@ -85,6 +85,7 @@ * */ +#define _GNU_SOURCE #include "libm.h" long double lgammal(long double x) |