Merge from vendor branch LIBPCAP:
[dragonfly.git] / lib / msun / src / e_gammaf.c
1 /* e_gammaf.c -- float version of e_gamma.c.
2  * Conversion to float by Ian Lance Taylor, Cygnus Support, ian@cygnus.com.
3  *
4  * $FreeBSD: src/lib/msun/src/e_gammaf.c,v 1.5 1999/08/28 00:06:31 peter Exp $
5  * $DragonFly: src/lib/msun/src/Attic/e_gammaf.c,v 1.2 2003/06/17 04:26:52 dillon Exp $
6  */
7
8 /*
9  * ====================================================
10  * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
11  *
12  * Developed at SunPro, a Sun Microsystems, Inc. business.
13  * Permission to use, copy, modify, and distribute this
14  * software is freely granted, provided that this notice
15  * is preserved.
16  * ====================================================
17  */
18
19 /* __ieee754_gammaf(x)
20  * Return the logarithm of the Gamma function of x.
21  *
22  * Method: call __ieee754_gammaf_r
23  */
24
25 #include "math.h"
26 #include "math_private.h"
27
28 extern int signgam;
29
30 #ifdef __STDC__
31         float __ieee754_gammaf(float x)
32 #else
33         float __ieee754_gammaf(x)
34         float x;
35 #endif
36 {
37         return __ieee754_gammaf_r(x,&signgam);
38 }