diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2017-09-07 13:37:33 +0300 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2017-09-07 13:37:33 +0300 |
commit | c460f6f15af681860f7606761da7579c9945761b (patch) | |
tree | 896f8f1493a66bf78c6333db628403ac4e4f6c81 /py/runtime0.h | |
parent | 6d4cac088eb29c7909f81121608546ca1b5e292e (diff) | |
download | micropython-c460f6f15af681860f7606761da7579c9945761b.tar.gz micropython-c460f6f15af681860f7606761da7579c9945761b.zip |
py/runtime0.h: Regroup operations a bit.
Originally, there were grouped in blocks of 5, to make it easier e.g.
to assess and numeric code of each. But now it makes more sense to
group it by semantics/properties, and then split in chunks still,
which usually leads to chunks of ~6 ops.
Diffstat (limited to 'py/runtime0.h')
-rw-r--r-- | py/runtime0.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/py/runtime0.h b/py/runtime0.h index 723ab582d0..b34211d576 100644 --- a/py/runtime0.h +++ b/py/runtime0.h @@ -60,8 +60,8 @@ typedef enum { MP_BINARY_OP_EQUAL, MP_BINARY_OP_LESS_EQUAL, MP_BINARY_OP_MORE_EQUAL, - MP_BINARY_OP_NOT_EQUAL, + MP_BINARY_OP_IN, MP_BINARY_OP_IS, MP_BINARY_OP_EXCEPTION_MATCH, @@ -75,24 +75,23 @@ typedef enum { MP_BINARY_OP_AND, MP_BINARY_OP_LSHIFT, MP_BINARY_OP_RSHIFT, - MP_BINARY_OP_ADD, + MP_BINARY_OP_SUBTRACT, MP_BINARY_OP_MULTIPLY, MP_BINARY_OP_FLOOR_DIVIDE, MP_BINARY_OP_TRUE_DIVIDE, - MP_BINARY_OP_MODULO, MP_BINARY_OP_POWER, + MP_BINARY_OP_INPLACE_OR, MP_BINARY_OP_INPLACE_XOR, - MP_BINARY_OP_INPLACE_AND, MP_BINARY_OP_INPLACE_LSHIFT, MP_BINARY_OP_INPLACE_RSHIFT, MP_BINARY_OP_INPLACE_ADD, - MP_BINARY_OP_INPLACE_SUBTRACT, + MP_BINARY_OP_INPLACE_SUBTRACT, MP_BINARY_OP_INPLACE_MULTIPLY, MP_BINARY_OP_INPLACE_FLOOR_DIVIDE, MP_BINARY_OP_INPLACE_TRUE_DIVIDE, |