Bring in FreeBSD's msun code for our libm.
[dragonfly.git] / lib / libm / src / e_lgamma.c
1
2 /* @(#)e_lgamma.c 1.3 95/01/18 */
3 /* $FreeBSD: head/lib/msun/src/e_lgamma.c 176451 2008-02-22 02:30:36Z das $ */
4 /*
5  * ====================================================
6  * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
7  *
8  * Developed at SunSoft, a Sun Microsystems, Inc. business.
9  * Permission to use, copy, modify, and distribute this
10  * software is freely granted, provided that this notice 
11  * is preserved.
12  * ====================================================
13  *
14  */
15
16 /* __ieee754_lgamma(x)
17  * Return the logarithm of the Gamma function of x.
18  *
19  * Method: call __ieee754_lgamma_r
20  */
21
22 #include "math.h"
23 #include "math_private.h"
24
25 extern int signgam;
26
27 double
28 __ieee754_lgamma(double x)
29 {
30         return __ieee754_lgamma_r(x,&signgam);
31 }