py: Add MP_BINARY_OP_DIVMOD to simplify and consolidate divmod builtin.

This commit is contained in:
Damien George
2015-06-13 22:00:10 +01:00
parent 6f49520042
commit c5029bcbf3
10 changed files with 71 additions and 85 deletions

View File

@@ -575,7 +575,6 @@ typedef struct _mp_obj_float_t {
} mp_obj_float_t;
mp_float_t mp_obj_float_get(mp_obj_t self_in);
mp_obj_t mp_obj_float_binary_op(mp_uint_t op, mp_float_t lhs_val, mp_obj_t rhs); // can return MP_OBJ_NULL if op not supported
void mp_obj_float_divmod(mp_float_t *x, mp_float_t *y);
// complex
void mp_obj_complex_get(mp_obj_t self_in, mp_float_t *real, mp_float_t *imag);