summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2004-06-21 16:31:15 (GMT)
committerRaymond Hettinger <python@rcn.com>2004-06-21 16:31:15 (GMT)
commit9c18e81fb23d60ea77bdf4f3c2649296f26e4a95 (patch)
treeb0a494cfa23bf97cbbd52019328a22c32db9e524 /Include
parent2c9f889122b48395c1997b08dd328f33f64f1ecd (diff)
downloadcpython-9c18e81fb23d60ea77bdf4f3c2649296f26e4a95.zip
cpython-9c18e81fb23d60ea77bdf4f3c2649296f26e4a95.tar.gz
cpython-9c18e81fb23d60ea77bdf4f3c2649296f26e4a95.tar.bz2
Install two code generation optimizations that depend on NOP.
Reduces the cost of "not" to almost zero.
Diffstat (limited to 'Include')
-rw-r--r--Include/opcode.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Include/opcode.h b/Include/opcode.h
index 8df96b4..868512f 100644
--- a/Include/opcode.h
+++ b/Include/opcode.h
@@ -13,6 +13,7 @@ extern "C" {
#define ROT_THREE 3
#define DUP_TOP 4
#define ROT_FOUR 5
+#define NOP 9
#define UNARY_POSITIVE 10
#define UNARY_NEGATIVE 11