e_gamma.c 749 B

12345678910111213141516171819202122232425262728293031323334
  1. /* @(#)e_gamma.c 5.1 93/09/24 */
  2. /*
  3. * ====================================================
  4. * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
  5. *
  6. * Developed at SunPro, a Sun Microsystems, Inc. business.
  7. * Permission to use, copy, modify, and distribute this
  8. * software is freely granted, provided that this notice
  9. * is preserved.
  10. * ====================================================
  11. *
  12. */
  13. /* __ieee754_gamma(x)
  14. * Return the logarithm of the Gamma function of x.
  15. *
  16. * Method: call __ieee754_gamma_r
  17. */
  18. #include "math_private.h"
  19. extern int signgam;
  20. #ifdef __STDC__
  21. //__private_extern__
  22. double __ieee754_gamma(double x)
  23. #else
  24. double __ieee754_gamma(x)
  25. double x;
  26. #endif
  27. {
  28. return __ieee754_gamma_r(x,&signgam);
  29. }