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 25extern int signgam; 26 27double 28lgamma(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