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 #include <sys/cdefs.h> 15 /* lgamma(x) 16 * Return the logarithm of the Gamma function of x. 17 * 18 * Method: call lgamma_r 19 */ 20 21 #include <float.h> 22 23 #include "math.h" 24 #include "math_private.h" 25 26 extern int signgam; 27 28 double 29 lgamma(double x) 30 { 31 return lgamma_r(x,&signgam); 32 } 33 34 #if (LDBL_MANT_DIG == 53) 35 __weak_reference(lgamma, lgammal); 36 #endif 37