1 /* w_lgammal.c -- long double version of w_lgamma.c.
2 * Conversion to long double by Ulrich Drepper,
3 * Cygnus Support, drepper@cygnus.com.
4 */
5
6 /*
7 * ====================================================
8 * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
9 *
10 * Developed at SunPro, a Sun Microsystems, Inc. business.
11 * Permission to use, copy, modify, and distribute this
12 * software is freely granted, provided that this notice
13 * is preserved.
14 * ====================================================
15 */
16
17 /* long double lgammal(long double x)
18 * Return the logarithm of the Gamma function of x.
19 *
20 * Method: call __ieee754_lgammal_r
21 */
22
23 #include <math.h>
24 #include "math_private.h"
25
26 #if !defined __NO_LONG_DOUBLE_MATH
lgammal(long double x)27 long double lgammal(long double x)
28 {
29 return lgammal_r(x, &signgam);
30 }
31
32 /* NB: gamma function is an old name for lgamma.
33 * It is deprecated.
34 * Some C math libraries redefine it as a "true gamma", i.e.,
35 * not a ln(|Gamma(x)|) but just Gamma(x), but standards
36 * introduced tgamma name for that.
37 */
38 strong_alias(lgammal, gammal)
39 #endif
40