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.
7 * ====================================================
8 * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
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
14 * ====================================================
17 /* long double lgammal(long double x)
18 * Return the logarithm of the Gamma function of x.
20 * Method: call __ieee754_lgammal_r
24 #include <math_private.h>
25 #include <math-svid-compat.h>
26 #include <libm-alias-ldouble.h>
28 #include <lgamma-compat.h>
32 LGFUNC (__lgammal
) (long double x
)
34 long double y
= CALL_LGAMMA (long double, __ieee754_lgammal_r
, x
);
35 if(__builtin_expect(!isfinite(y
), 0)
36 && isfinite(x
) && _LIB_VERSION
!= _IEEE_
)
37 return __kernel_standard_l(x
, x
,
39 ? 215 /* lgamma pole */
40 : 214); /* lgamma overflow */
45 compat_symbol (libm
, __lgammal_compat
, lgammal
, LGAMMA_OLD_VER
);
47 versioned_symbol (libm
, __lgammal
, lgammal
, LGAMMA_NEW_VER
);
48 libm_alias_ldouble_other (__lgamma
, lgamma
)
51 strong_alias (LGFUNC (__lgammal
), __gammal
)
52 weak_alias (__gammal
, gammal
)