e_gamma.c 691 B

12345678910111213141516171819202122232425262728
  1. /*
  2. * ====================================================
  3. * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
  4. *
  5. * Developed at SunPro, a Sun Microsystems, Inc. business.
  6. * Permission to use, copy, modify, and distribute this
  7. * software is freely granted, provided that this notice
  8. * is preserved.
  9. * ====================================================
  10. *
  11. */
  12. /* __ieee754_gamma(x)
  13. * Return the logarithm of the Gamma function of x.
  14. *
  15. * Method: call __ieee754_gamma_r
  16. */
  17. #include <math.h>
  18. #include "math_private.h"
  19. libm_hidden_proto(signgam)
  20. /* __private_extern__ */
  21. double attribute_hidden __ieee754_gamma(double x)
  22. {
  23. return __ieee754_gamma_r(x,&signgam);
  24. }