e_lgamma.c 812 B

12345678910111213141516171819202122232425262728293031323334
  1. /* @(#)e_lgamma.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_lgamma(x)
  14. * Return the logarithm of the Gamma function of x.
  15. *
  16. * Method: call __ieee754_lgamma_r
  17. */
  18. #include <math.h>
  19. #include "math_private.h"
  20. libm_hidden_proto(signgam)
  21. #ifdef __STDC__
  22. //__private_extern__
  23. double attribute_hidden __ieee754_lgamma(double x)
  24. #else
  25. double attribute_hidden __ieee754_lgamma(x)
  26. double x;
  27. #endif
  28. {
  29. return __ieee754_lgamma_r(x,&signgam);
  30. }