diff options
author | Damien George <damien.p.george@gmail.com> | 2019-10-29 12:08:07 +1100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2019-10-29 23:13:51 +1100 |
commit | 323d47887f0e407b6560a5957ea934049e70d2aa (patch) | |
tree | b2b9be3ababe644123d964731ea7f653822fa86f /tests/extmod/uselect_poll_basic.py | |
parent | 25946d1ef4c20439368b37ec27acf2184b25be28 (diff) |
py/runtime: Reorder some binary ops so they don't require conditionals.
runtime0.h is part of the MicroPython ABI so it's simpler if it's
independent of config options, like MICROPY_PY_REVERSE_SPECIAL_METHODS.
What's effectively done here is to move MP_BINARY_OP_DIVMOD and
MP_BINARY_OP_CONTAINS up in the enum, then remove the #if
MICROPY_PY_REVERSE_SPECIAL_METHODS conditional.
Without this change .mpy files would need to have a feature flag for
MICROPY_PY_REVERSE_SPECIAL_METHODS (when embedding native code that uses
this enum).
This commit has no effect when MICROPY_PY_REVERSE_SPECIAL_METHODS is
disabled. With this option enabled this commit reduces code size by about
60 bytes.
Diffstat (limited to 'tests/extmod/uselect_poll_basic.py')
0 files changed, 0 insertions, 0 deletions