summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2021-09-17 12:09:14 (GMT)
committerGitHub <noreply@github.com>2021-09-17 12:09:14 (GMT)
commit6b413551284a94cfe31377c9c607ff890aa06c26 (patch)
treef113db6c256f4d8565d53b2dbdc6b29019e2d38a /Misc
parent064464fc38269e70f7e3a34cb25fc9085ab85782 (diff)
downloadcpython-6b413551284a94cfe31377c9c607ff890aa06c26.zip
cpython-6b413551284a94cfe31377c9c607ff890aa06c26.tar.gz
cpython-6b413551284a94cfe31377c9c607ff890aa06c26.tar.bz2
bpo-45116: Add the Py_ALWAYS_INLINE macro (GH-28390)
Add the Py_ALWAYS_INLINE macro to ask the compiler to always inline a static inline function. The compiler can ignore it and decides to not inline the function.
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/C API/2021-09-16-18-05-20.bpo-45116.WxXewl.rst3
1 files changed, 3 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/C API/2021-09-16-18-05-20.bpo-45116.WxXewl.rst b/Misc/NEWS.d/next/C API/2021-09-16-18-05-20.bpo-45116.WxXewl.rst
new file mode 100644
index 0000000..cf3db5c
--- /dev/null
+++ b/Misc/NEWS.d/next/C API/2021-09-16-18-05-20.bpo-45116.WxXewl.rst
@@ -0,0 +1,3 @@
+Add the :c:macro:`Py_ALWAYS_INLINE` macro to ask the compiler to always
+inline a static inline function. The compiler can ignore it and decides to
+not inline the function. Patch by Victor Stinner.