diff options
author | Damien George <damien.p.george@gmail.com> | 2014-02-01 23:04:09 +0000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-02-01 23:04:09 +0000 |
commit | 9aa2a527b532e31c77592cede3b38c018c83ac64 (patch) | |
tree | ea2c5431a7b645f4aba7d573086ada1109cbcdd1 /py/objint_longlong.c | |
parent | 7e5fb24e3bdd8a07e2c7f317ad44b62e85082547 (diff) |
py: Tidy up BINARY_OPs; negation done by special NOT bytecode.
IS_NOT and NOT_IN are now compiled to IS + NOT and IN + NOT, with a new
special NOT bytecode.
Diffstat (limited to 'py/objint_longlong.c')
-rw-r--r-- | py/objint_longlong.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/py/objint_longlong.c b/py/objint_longlong.c index a59bcf061..83db6033f 100644 --- a/py/objint_longlong.c +++ b/py/objint_longlong.c @@ -103,17 +103,17 @@ mp_obj_t int_binary_op(int op, mp_obj_t lhs_in, mp_obj_t rhs_in) { case RT_BINARY_OP_INPLACE_RSHIFT: lhs->val >>= (int)rhs_val; return lhs; - case RT_COMPARE_OP_LESS: + case RT_BINARY_OP_LESS: return MP_BOOL(lhs->val < rhs_val); - case RT_COMPARE_OP_MORE: + case RT_BINARY_OP_MORE: return MP_BOOL(lhs->val > rhs_val); - case RT_COMPARE_OP_LESS_EQUAL: + case RT_BINARY_OP_LESS_EQUAL: return MP_BOOL(lhs->val <= rhs_val); - case RT_COMPARE_OP_MORE_EQUAL: + case RT_BINARY_OP_MORE_EQUAL: return MP_BOOL(lhs->val >= rhs_val); - case RT_COMPARE_OP_EQUAL: + case RT_BINARY_OP_EQUAL: return MP_BOOL(lhs->val == rhs_val); - case RT_COMPARE_OP_NOT_EQUAL: + case RT_BINARY_OP_NOT_EQUAL: return MP_BOOL(lhs->val != rhs_val); default: |