home *** CD-ROM | disk | FTP | other *** search
/ PC Extra Super CD 1998 January / PCPLUS131.iso / DJGPP / V2 / DJLSR201.ZIP / src / libm / src / e_gamma.c < prev    next >
Encoding:
C/C++ Source or Header  |  1994-09-25  |  971 b   |  39 lines

  1. /* Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details */
  2. /* @(#)e_gamma.c 5.1 93/09/24 */
  3. /*
  4.  * ====================================================
  5.  * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
  6.  *
  7.  * Developed at SunPro, a Sun Microsystems, Inc. business.
  8.  * Permission to use, copy, modify, and distribute this
  9.  * software is freely granted, provided that this notice 
  10.  * is preserved.
  11.  * ====================================================
  12.  *
  13.  */
  14.  
  15. #if defined(LIBM_SCCS) && !defined(lint)
  16. static char rcsid[] = "$Id: e_gamma.c,v 1.4 1994/08/10 20:30:51 jtc Exp $";
  17. #endif
  18.  
  19. /* __ieee754_gamma(x)
  20.  * Return the logarithm of the Gamma function of x.
  21.  *
  22.  * Method: call __ieee754_gamma_r
  23.  */
  24.  
  25. #include "math.h"
  26. #include "math_private.h"
  27.  
  28. extern int signgam;
  29.  
  30. #ifdef __STDC__
  31.     double __ieee754_gamma(double x)
  32. #else
  33.     double __ieee754_gamma(x)
  34.     double x;
  35. #endif
  36. {
  37.     return __ieee754_gamma_r(x,&signgam);
  38. }
  39.