mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
bpo-37236: pragma optimize off for _Py_c_quot on Windows arm64 (GH-13983)
(cherry picked from commit ff6bb0aa95
)
Co-authored-by: Paul Monson <paulmon@users.noreply.github.com>
This commit is contained in:
parent
bb3e8a68b2
commit
f72886a066
1 changed files with 7 additions and 0 deletions
|
@ -55,6 +55,10 @@ _Py_c_prod(Py_complex a, Py_complex b)
|
|||
return r;
|
||||
}
|
||||
|
||||
/* Avoid bad optimization on Windows ARM64 until the compiler is fixed */
|
||||
#ifdef _M_ARM64
|
||||
#pragma optimize("", off)
|
||||
#endif
|
||||
Py_complex
|
||||
_Py_c_quot(Py_complex a, Py_complex b)
|
||||
{
|
||||
|
@ -112,6 +116,9 @@ _Py_c_quot(Py_complex a, Py_complex b)
|
|||
}
|
||||
return r;
|
||||
}
|
||||
#ifdef _M_ARM64
|
||||
#pragma optimize("", on)
|
||||
#endif
|
||||
|
||||
Py_complex
|
||||
_Py_c_pow(Py_complex a, Py_complex b)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue