e_gammaf.c revision 8870
12116Sjkh/* e_gammaf.c -- float version of e_gamma.c.
22116Sjkh * Conversion to float by Ian Lance Taylor, Cygnus Support, ian@cygnus.com.
32116Sjkh */
42116Sjkh
52116Sjkh/*
62116Sjkh * ====================================================
72116Sjkh * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
82116Sjkh *
92116Sjkh * Developed at SunPro, a Sun Microsystems, Inc. business.
102116Sjkh * Permission to use, copy, modify, and distribute this
118870Srgrimes * software is freely granted, provided that this notice
122116Sjkh * is preserved.
132116Sjkh * ====================================================
142116Sjkh */
152116Sjkh
162116Sjkh#ifndef lint
178870Srgrimesstatic char rcsid[] = "$Id: e_gammaf.c,v 1.1.1.1 1994/08/19 09:39:54 jkh Exp $";
182116Sjkh#endif
192116Sjkh
202116Sjkh/* __ieee754_gammaf(x)
212116Sjkh * Return the logarithm of the Gamma function of x.
222116Sjkh *
232116Sjkh * Method: call __ieee754_gammaf_r
242116Sjkh */
252116Sjkh
262116Sjkh#include "math.h"
272116Sjkh#include "math_private.h"
282116Sjkh
292116Sjkhextern int signgam;
302116Sjkh
312116Sjkh#ifdef __STDC__
322116Sjkh	float __ieee754_gammaf(float x)
332116Sjkh#else
342116Sjkh	float __ieee754_gammaf(x)
352116Sjkh	float x;
362116Sjkh#endif
372116Sjkh{
382116Sjkh	return __ieee754_gammaf_r(x,&signgam);
392116Sjkh}
40