w_lgammaf.c 872 B

123456789101112131415161718192021222324252627282930
  1. /* w_lgammaf.c -- float version of w_lgamma.c.
  2. * Conversion to float by Ian Lance Taylor, Cygnus Support, ian@cygnus.com.
  3. */
  4. /*
  5. * ====================================================
  6. * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
  7. *
  8. * Developed at SunPro, a Sun Microsystems, Inc. business.
  9. * Permission to use, copy, modify, and distribute this
  10. * software is freely granted, provided that this notice
  11. * is preserved.
  12. * ====================================================
  13. */
  14. #include <math.h>
  15. #include "math_private.h"
  16. float lgammaf(float x)
  17. {
  18. return lgammaf_r(x, &signgam);
  19. }
  20. /* NB: gamma function is an old name for lgamma.
  21. * It is deprecated.
  22. * Some C math libraries redefine it as a "true gamma", i.e.,
  23. * not a ln(|Gamma(x)|) but just Gamma(x), but standards
  24. * introduced tgamma name for that.
  25. */
  26. strong_alias(lgammaf, gammaf)