xref: /freebsd/lib/msun/src/e_lgamma.c (revision 725a9f47324d42037db93c27ceb40d4956872f3e)
1 
2 /*
3  * ====================================================
4  * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
5  *
6  * Developed at SunSoft, a Sun Microsystems, Inc. business.
7  * Permission to use, copy, modify, and distribute this
8  * software is freely granted, provided that this notice
9  * is preserved.
10  * ====================================================
11  *
12  */
13 
14 /* lgamma(x)
15  * Return the logarithm of the Gamma function of x.
16  *
17  * Method: call lgamma_r
18  */
19 
20 #include <float.h>
21 
22 #include "math.h"
23 #include "math_private.h"
24 
25 extern int signgam;
26 
27 double
28 lgamma(double x)
29 {
30 	return lgamma_r(x,&signgam);
31 }
32 
33 #if (LDBL_MANT_DIG == 53)
34 __weak_reference(lgamma, lgammal);
35 #endif
36