e_lgamma.c revision 2116
12116Sjkh/* @(#)e_lgamma.c 5.1 93/09/24 */
22116Sjkh/*
32116Sjkh * ====================================================
42116Sjkh * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
52116Sjkh *
62116Sjkh * Developed at SunPro, a Sun Microsystems, Inc. business.
72116Sjkh * Permission to use, copy, modify, and distribute this
82116Sjkh * software is freely granted, provided that this notice
92116Sjkh * is preserved.
102116Sjkh * ====================================================
112116Sjkh */
122116Sjkh
132116Sjkh#ifndef lint
142116Sjkhstatic char rcsid[] = "$Id: e_lgamma.c,v 1.4 1994/08/10 20:31:05 jtc Exp $";
152116Sjkh#endif
162116Sjkh
172116Sjkh/* __ieee754_lgamma(x)
182116Sjkh * Return the logarithm of the Gamma function of x.
192116Sjkh *
202116Sjkh * Method: call __ieee754_lgamma_r
212116Sjkh */
222116Sjkh
232116Sjkh#include "math.h"
242116Sjkh#include "math_private.h"
252116Sjkh
262116Sjkhextern int signgam;
272116Sjkh
282116Sjkh#ifdef __STDC__
292116Sjkh	double __ieee754_lgamma(double x)
302116Sjkh#else
312116Sjkh	double __ieee754_lgamma(x)
322116Sjkh	double x;
332116Sjkh#endif
342116Sjkh{
352116Sjkh	return __ieee754_lgamma_r(x,&signgam);
362116Sjkh}
37