e_lgamma.c 800 B

123456789101112131415161718192021222324252627282930313233
  1. /* @(#)e_lgamma.c 1.3 95/01/18 */
  2. /*
  3. * ====================================================
  4. * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
  5. *
  6. * Developed at SunSoft, 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. #include <sys/cdefs.h>
  14. //__FBSDID("$FreeBSD: src/lib/msun/src/e_lgamma.c,v 1.9 2008/02/22 02:30:35 das Exp $");
  15. /* __ieee754_lgamma(x)
  16. * Return the logarithm of the Gamma function of x.
  17. *
  18. * Method: call __ieee754_lgamma_r
  19. */
  20. #include "openlibm.h"
  21. #include "math_private.h"
  22. extern int signgam;
  23. double
  24. __ieee754_lgamma(double x)
  25. {
  26. return __ieee754_lgamma_r(x,&signgam);
  27. }