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
1007 B

  1. #ifdef HAVE_ACOSH
  2. # define m_acosh acosh
  3. #else
  4. /* if the system doesn't have acosh, use the substitute
  5. function defined in Modules/_math.c. */
  6. double _Py_acosh(double x);
  7. # define m_acosh _Py_acosh
  8. #endif
  9. #ifdef HAVE_ASINH
  10. # define m_asinh asinh
  11. #else
  12. /* if the system doesn't have asinh, use the substitute
  13. function defined in Modules/_math.c. */
  14. double _Py_asinh(double x);
  15. # define m_asinh _Py_asinh
  16. #endif
  17. #ifdef HAVE_ATANH
  18. # define m_atanh atanh
  19. #else
  20. /* if the system doesn't have atanh, use the substitute
  21. function defined in Modules/_math.c. */
  22. double _Py_atanh(double x);
  23. #define m_atanh _Py_atanh
  24. #endif
  25. #ifdef HAVE_EXPM1
  26. # define m_expm1 expm1
  27. #else
  28. /* if the system doesn't have expm1, use the substitute
  29. function defined in Modules/_math.c. */
  30. double _Py_expm1(double x);
  31. #define m_expm1 _Py_expm1
  32. #endif
  33. double _Py_log1p(double x);
  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