You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

41 lines
995 B

  1. double _Py_acosh(double x);
  2. double _Py_asinh(double x);
  3. double _Py_atanh(double x);
  4. double _Py_expm1(double x);
  5. double _Py_log1p(double x);
  6. #ifdef HAVE_ACOSH
  7. #define m_acosh acosh
  8. #else
  9. /* if the system doesn't have acosh, use the substitute
  10. function defined in Modules/_math.c. */
  11. #define m_acosh _Py_acosh
  12. #endif
  13. #ifdef HAVE_ASINH
  14. #define m_asinh asinh
  15. #else
  16. /* if the system doesn't have asinh, use the substitute
  17. function defined in Modules/_math.c. */
  18. #define m_asinh _Py_asinh
  19. #endif
  20. #ifdef HAVE_ATANH
  21. #define m_atanh atanh
  22. #else
  23. /* if the system doesn't have atanh, use the substitute
  24. function defined in Modules/_math.c. */
  25. #define m_atanh _Py_atanh
  26. #endif
  27. #ifdef HAVE_EXPM1
  28. #define m_expm1 expm1
  29. #else
  30. /* if the system doesn't have expm1, use the substitute
  31. function defined in Modules/_math.c. */
  32. #define m_expm1 _Py_expm1
  33. #endif
  34. /* Use the substitute from _math.c on all platforms:
  35. it includes workarounds for buggy handling of zeros. */
  36. #define m_log1p _Py_log1p