summaryrefslogtreecommitdiffstats
path: root/Include/pymath.h
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2021-09-03 14:44:02 (GMT)
committerGitHub <noreply@github.com>2021-09-03 14:44:02 (GMT)
commit7974c30b9fd84fa56ea1515ed2c08b38edf1a383 (patch)
tree2d638f338e1e6f90765fa731ff27ef6265524723 /Include/pymath.h
parentbe9de8721d63b9d8e032d508069daf88c06542c6 (diff)
downloadcpython-7974c30b9fd84fa56ea1515ed2c08b38edf1a383.zip
cpython-7974c30b9fd84fa56ea1515ed2c08b38edf1a383.tar.gz
cpython-7974c30b9fd84fa56ea1515ed2c08b38edf1a383.tar.bz2
bpo-45094: Add Py_NO_INLINE macro (GH-28140)
* Rename _Py_NO_INLINE macro to Py_NO_INLINE: make it public and document it. * Sort macros in the C API documentation.
Diffstat (limited to 'Include/pymath.h')
-rw-r--r--Include/pymath.h7
1 files changed, 1 insertions, 6 deletions
diff --git a/Include/pymath.h b/Include/pymath.h
index f869724..ebb3b05 100644
--- a/Include/pymath.h
+++ b/Include/pymath.h
@@ -163,12 +163,7 @@ PyAPI_FUNC(void) _Py_set_387controlword(unsigned short);
#pragma float_control(push)
#pragma float_control(precise, on)
#pragma float_control(except, on)
- #if defined(_MSC_VER)
- __declspec(noinline)
- #else /* Linux */
- __attribute__((noinline))
- #endif /* _MSC_VER */
- static double __icc_nan()
+ Py_NO_INLINE static double __icc_nan()
{
return sqrt(-1.0);
}