xref: /freebsd/lib/msun/src/e_gamma.c (revision 8aac90f18aef7c9eea906c3ff9a001ca7b94f375)
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 /* gamma(x)
15  * Return the logarithm of the Gamma function of x.
16  *
17  * Method: call gamma_r
18  */
19 
20 #include "math.h"
21 #include "math_private.h"
22 
23 extern int signgam;
24 
25 double
26 gamma(double x)
27 {
28 	return gamma_r(x,&signgam);
29 }
30