libm: Sync with FreeBSD (gains 6 long double functions)
[dragonfly.git] / lib / libm / src / e_lgamma.c
CommitLineData
6ff43c94
PA
1
2/* @(#)e_lgamma.c 1.3 95/01/18 */
6ff43c94
PA
3/*
4 * ====================================================
5 * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
6 *
7 * Developed at SunSoft, a Sun Microsystems, Inc. business.
8 * Permission to use, copy, modify, and distribute this
9 * software is freely granted, provided that this notice
10 * is preserved.
11 * ====================================================
12 *
13 */
14
2fedfd5c 15
6ff43c94
PA
16/* __ieee754_lgamma(x)
17 * Return the logarithm of the Gamma function of x.
18 *
19 * Method: call __ieee754_lgamma_r
20 */
21
2fedfd5c
JM
22#include <float.h>
23
6ff43c94
PA
24#include "math.h"
25#include "math_private.h"
26
27extern int signgam;
28
29double
30__ieee754_lgamma(double x)
31{
32 return __ieee754_lgamma_r(x,&signgam);
33}
2fedfd5c
JM
34
35#if (LDBL_MANT_DIG == 53)
36__weak_reference(lgamma, lgammal);
37#endif