summaryrefslogtreecommitdiffstats
path: root/Python/ceval_macros.h
diff options
context:
space:
mode:
authorMark Shannon <mark@hotpy.org>2023-06-07 16:04:53 (GMT)
committerGitHub <noreply@github.com>2023-06-07 16:04:53 (GMT)
commit064de0e3fca014e5225830a35766fb7867cbf403 (patch)
tree72f73ca2a4788968816f03268cbfbde7741f34ab /Python/ceval_macros.h
parentd63a7c3694d5c4484fcaa01c33590b1d4bc2559e (diff)
downloadcpython-064de0e3fca014e5225830a35766fb7867cbf403.zip
cpython-064de0e3fca014e5225830a35766fb7867cbf403.tar.gz
cpython-064de0e3fca014e5225830a35766fb7867cbf403.tar.bz2
GH-104610: Remove the use of `PREDICT` macros. (GH-104651)
Diffstat (limited to 'Python/ceval_macros.h')
-rw-r--r--Python/ceval_macros.h15
1 files changed, 0 insertions, 15 deletions
diff --git a/Python/ceval_macros.h b/Python/ceval_macros.h
index 86a48f6..44d6ee8 100644
--- a/Python/ceval_macros.h
+++ b/Python/ceval_macros.h
@@ -174,21 +174,6 @@ GETITEM(PyObject *v, Py_ssize_t i) {
*/
#define PREDICT_ID(op) PRED_##op
-
-#if USE_COMPUTED_GOTOS
-#define PREDICT(op) if (0) goto PREDICT_ID(op)
-#else
-#define PREDICT(next_op) \
- do { \
- _Py_CODEUNIT word = *next_instr; \
- opcode = word.op.code; \
- if (opcode == next_op) { \
- oparg = word.op.arg; \
- INSTRUCTION_START(next_op); \
- goto PREDICT_ID(next_op); \
- } \
- } while(0)
-#endif
#define PREDICTED(op) PREDICT_ID(op):