aboutsummaryrefslogtreecommitdiff
path: root/py/objint.h
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2017-08-29 13:04:01 +1000
committerDamien George <damien.p.george@gmail.com>2017-08-29 13:16:30 +1000
commit58321dd9854d71a96e5db2d361e0efc05d9de8cf (patch)
tree99868b98083b1b25715303ee6f2b62835492ffce /py/objint.h
parentbe8e5744e64aec10a3499fd6ea034bbf4be0c871 (diff)
all: Convert mp_uint_t to mp_unary_op_t/mp_binary_op_t where appropriate
The unary-op/binary-op enums are already defined, and there are no arithmetic tricks used with these types, so it makes sense to use the correct enum type for arguments that take these values. It also reduces code size quite a bit for nan-boxing builds.
Diffstat (limited to 'py/objint.h')
-rw-r--r--py/objint.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/py/objint.h b/py/objint.h
index 394c23714..a4d4ff32d 100644
--- a/py/objint.h
+++ b/py/objint.h
@@ -58,9 +58,9 @@ mp_obj_t mp_obj_int_from_bytes_impl(bool big_endian, size_t len, const byte *buf
void mp_obj_int_to_bytes_impl(mp_obj_t self_in, bool big_endian, size_t len, byte *buf);
int mp_obj_int_sign(mp_obj_t self_in);
mp_obj_t mp_obj_int_abs(mp_obj_t self_in);
-mp_obj_t mp_obj_int_unary_op(mp_uint_t op, mp_obj_t o_in);
-mp_obj_t mp_obj_int_binary_op(mp_uint_t op, mp_obj_t lhs_in, mp_obj_t rhs_in);
-mp_obj_t mp_obj_int_binary_op_extra_cases(mp_uint_t op, mp_obj_t lhs_in, mp_obj_t rhs_in);
+mp_obj_t mp_obj_int_unary_op(mp_unary_op_t op, mp_obj_t o_in);
+mp_obj_t mp_obj_int_binary_op(mp_binary_op_t op, mp_obj_t lhs_in, mp_obj_t rhs_in);
+mp_obj_t mp_obj_int_binary_op_extra_cases(mp_binary_op_t op, mp_obj_t lhs_in, mp_obj_t rhs_in);
mp_obj_t mp_obj_int_pow3(mp_obj_t base, mp_obj_t exponent, mp_obj_t modulus);
#endif // MICROPY_INCLUDED_PY_OBJINT_H