diff options
author | Sam Gross <colesbury@gmail.com> | 2024-08-11 17:15:02 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-11 17:15:02 (GMT) |
commit | 1069190bad99701bf565497fa1e46575470bf237 (patch) | |
tree | 329a2c43b82de52e2aef4fb8f498dcf98c4e4fd1 /Python/ceval_macros.h | |
parent | bc9d92c67933917b474e61905451c6408c68e71d (diff) | |
download | cpython-1069190bad99701bf565497fa1e46575470bf237.zip cpython-1069190bad99701bf565497fa1e46575470bf237.tar.gz cpython-1069190bad99701bf565497fa1e46575470bf237.tar.bz2 |
gh-122860: Remove unused macro `_Py_atomic_load_relaxed_int32` (#122861)
Diffstat (limited to 'Python/ceval_macros.h')
-rw-r--r-- | Python/ceval_macros.h | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/Python/ceval_macros.h b/Python/ceval_macros.h index 2881ed2..8b25a5f 100644 --- a/Python/ceval_macros.h +++ b/Python/ceval_macros.h @@ -375,13 +375,6 @@ do { \ } while (0); -// GH-89279: Force inlining by using a macro. -#if defined(_MSC_VER) && SIZEOF_INT == 4 -#define _Py_atomic_load_relaxed_int32(ATOMIC_VAL) (assert(sizeof((ATOMIC_VAL)->_value) == 4), *((volatile int*)&((ATOMIC_VAL)->_value))) -#else -#define _Py_atomic_load_relaxed_int32(ATOMIC_VAL) _Py_atomic_load_relaxed(ATOMIC_VAL) -#endif - static inline int _Py_EnterRecursivePy(PyThreadState *tstate) { return (tstate->py_recursion_remaining-- <= 0) && _Py_CheckRecursiveCallPy(tstate); |