projects
/
musl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
aee11e5
)
move lgamma-related internal declarations to libm.h
author
Rich Felker
<dalias@aerifal.cx>
Fri, 7 Sep 2018 16:32:12 +0000
(12:32 -0400)
committer
Rich Felker
<dalias@aerifal.cx>
Wed, 12 Sep 2018 18:34:29 +0000
(14:34 -0400)
src/internal/libm.h
patch
|
blob
|
history
src/math/lgamma.c
patch
|
blob
|
history
src/math/lgammaf.c
patch
|
blob
|
history
src/math/lgammal.c
patch
|
blob
|
history
src/math/signgam.c
patch
|
blob
|
history
diff --git
a/src/internal/libm.h
b/src/internal/libm.h
index
a2505f7
..
f1bf0a6
100644
(file)
--- a/
src/internal/libm.h
+++ b/
src/internal/libm.h
@@
-192,4
+192,8
@@
long double __tanl(long double, long double, int);
long double __polevll(long double, const long double *, int);
long double __p1evll(long double, const long double *, int);
long double __polevll(long double, const long double *, int);
long double __p1evll(long double, const long double *, int);
+extern int __signgam;
+double __lgamma_r(double, int *);
+float __lgammaf_r(float, int *);
+
#endif
#endif
diff --git
a/src/math/lgamma.c
b/src/math/lgamma.c
index
e25ec8e
..
2fc9b47
100644
(file)
--- a/
src/math/lgamma.c
+++ b/
src/math/lgamma.c
@@
-1,7
+1,5
@@
#include <math.h>
#include <math.h>
-
-extern int __signgam;
-double __lgamma_r(double, int *);
+#include "libm.h"
double lgamma(double x)
{
double lgamma(double x)
{
diff --git
a/src/math/lgammaf.c
b/src/math/lgammaf.c
index
badb6df
..
2ae051d
100644
(file)
--- a/
src/math/lgammaf.c
+++ b/
src/math/lgammaf.c
@@
-1,7
+1,5
@@
#include <math.h>
#include <math.h>
-
-extern int __signgam;
-float __lgammaf_r(float, int *);
+#include "libm.h"
float lgammaf(float x)
{
float lgammaf(float x)
{
diff --git
a/src/math/lgammal.c
b/src/math/lgammal.c
index
2b354a7
..
8c79812
100644
(file)
--- a/
src/math/lgammal.c
+++ b/
src/math/lgammal.c
@@
-90,8
+90,6
@@
#include "libc.h"
#if LDBL_MANT_DIG == 53 && LDBL_MAX_EXP == 1024
#include "libc.h"
#if LDBL_MANT_DIG == 53 && LDBL_MAX_EXP == 1024
-double __lgamma_r(double x, int *sg);
-
long double __lgammal_r(long double x, int *sg)
{
return __lgamma_r(x, sg);
long double __lgammal_r(long double x, int *sg)
{
return __lgamma_r(x, sg);
@@
-342,16
+340,12
@@
long double __lgammal_r(long double x, int *sg) {
}
#elif LDBL_MANT_DIG == 113 && LDBL_MAX_EXP == 16384
// TODO: broken implementation to make things compile
}
#elif LDBL_MANT_DIG == 113 && LDBL_MAX_EXP == 16384
// TODO: broken implementation to make things compile
-double __lgamma_r(double x, int *sg);
-
long double __lgammal_r(long double x, int *sg)
{
return __lgamma_r(x, sg);
}
#endif
long double __lgammal_r(long double x, int *sg)
{
return __lgamma_r(x, sg);
}
#endif
-extern int __signgam;
-
long double lgammal(long double x)
{
return __lgammal_r(x, &__signgam);
long double lgammal(long double x)
{
return __lgammal_r(x, &__signgam);
diff --git
a/src/math/signgam.c
b/src/math/signgam.c
index
cd72800
..
b4903a5
100644
(file)
--- a/
src/math/signgam.c
+++ b/
src/math/signgam.c
@@
-1,4
+1,5
@@
#include <math.h>
#include <math.h>
+#include "libm.h"
#include "libc.h"
int __signgam = 0;
#include "libc.h"
int __signgam = 0;