diff options
author | 2011-07-06 00:02:42 +0000 | |
---|---|---|
committer | 2011-07-06 00:02:42 +0000 | |
commit | 49393c004c040ee201e6408db68882c3fe4cb110 (patch) | |
tree | f3298ab7f1009e5bcf7f59709937ab1bf7c9db6e /lib/libm/src/w_lgamma.c | |
parent | a short note about PR_DEBUGCHK (diff) | |
download | wireguard-openbsd-49393c004c040ee201e6408db68882c3fe4cb110.tar.xz wireguard-openbsd-49393c004c040ee201e6408db68882c3fe4cb110.zip |
Finalize work on the math library. It's time to do this monster
commit, and deal with problems (if any) in tree.
Note that this adds the following functions. Ports with hacks might
need adjustments.
nexttoward(3), fma(3), nexttowardf(3), fmaf(3), acoshl(3), asinhl(3),
atanhl(3), coshl(3), sinhl(3), tanhl(3), expl(3), expm1l(3), logl(3),
log10l(3), log1pl(3), log2l(3), modfl(3), cbrtl(3), hypotl(3),
powl(3), erfl(3), erfcl(3), lgammal(3), tgammal(3), ceill(3),
floorl(3), lrintl(3), llrintl(3), roundl(3), lroundl(3), llroundl(3),
truncl(3), fmodl(3), remainderl(3), remquol(3), nextafterl(3),
nexttowardl(3), fmal(3).
With this commit, our library implements all functionality required
by C99. Documentation bits will follow.
Diffstat (limited to 'lib/libm/src/w_lgamma.c')
-rw-r--r-- | lib/libm/src/w_lgamma.c | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/lib/libm/src/w_lgamma.c b/lib/libm/src/w_lgamma.c index 8e5b9b7cb8c..bf69e9a734f 100644 --- a/lib/libm/src/w_lgamma.c +++ b/lib/libm/src/w_lgamma.c @@ -10,13 +10,18 @@ * ==================================================== */ +/* LINTLIBRARY */ + /* double lgamma(double x) * Return the logarithm of the Gamma function of x. * * Method: call lgamma_r */ -#include "math.h" +#include <sys/cdefs.h> +#include <float.h> +#include <math.h> + #include "math_private.h" extern int signgam; @@ -26,3 +31,12 @@ lgamma(double x) { return lgamma_r(x,&signgam); } + +#if LDBL_MANT_DIG == 53 +#ifdef lint +/* PROTOLIB1 */ +long double lgammal(long double); +#else /* lint */ +__weak_alias(lgammal, lgamma); +#endif /* lint */ +#endif /* LDBL_MANT_DIG == 53 */ |