1 /* wf_lgamma.c -- float version of w_lgamma.c.
2  * Conversion to float by Ian Lance Taylor, Cygnus Support, ian@cygnus.com.
3  */
4 
5 /*
6  * ====================================================
7  * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
8  *
9  * Developed at SunPro, a Sun Microsystems, Inc. business.
10  * Permission to use, copy, modify, and distribute this
11  * software is freely granted, provided that this notice
12  * is preserved.
13  * ====================================================
14  *
15  */
16 
17 #include "fdlibm.h"
18 #include <errno.h>
19 
20 float
lgammaf(float x)21 lgammaf(float x)
22 {
23     return lgammaf_r(x, &__signgam);
24 }
25 
26 #  ifdef _HAVE_ALIAS_ATTRIBUTE
27 #ifdef __GNUC__
28 #pragma GCC diagnostic ignored "-Wpragmas"
29 #pragma GCC diagnostic ignored "-Wunknown-warning-option"
30 #pragma GCC diagnostic ignored "-Wattribute-alias="
31 #pragma GCC diagnostic ignored "-Wmissing-attributes"
32 #endif
33 __strong_reference(lgammaf, gammaf);
34 #else
35 float
gammaf(float x)36 gammaf(float x)
37 {
38     return lgammaf(x);
39 }
40 #endif
41 
42 _MATH_ALIAS_f_f(lgamma)
43 _MATH_ALIAS_f_f(gamma)
44