gh-122681: remove m_atan2()/c_atan2() helpers (#122715)

This commit is contained in:
Sergey B Kirpichev 2024-08-17 11:18:16 +03:00 committed by GitHub
parent e6d5ff55d0
commit 19be0ee931
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 3 additions and 42 deletions

View file

@ -925,7 +925,7 @@ cmath_phase_impl(PyObject *module, Py_complex z)
double phi;
errno = 0;
phi = m_atan2(z.imag, z.real); /* should not cause any exception */
phi = atan2(z.imag, z.real); /* should not cause any exception */
if (errno != 0)
return math_error();
else
@ -950,7 +950,7 @@ cmath_polar_impl(PyObject *module, Py_complex z)
double r, phi;
errno = 0;
phi = m_atan2(z.imag, z.real); /* should not cause any exception */
phi = atan2(z.imag, z.real); /* should not cause any exception */
r = _Py_c_abs(z); /* sets errno to ERANGE on overflow */
if (errno != 0)
return math_error();