diff options
author | Damien George <damien.p.george@gmail.com> | 2014-09-13 18:43:09 +0100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-09-13 18:43:09 +0100 |
commit | 8594ce228011e6264f59ade4ff8a7f2bfa90a649 (patch) | |
tree | 528fa7008c5e4c4b283c33abcf3eefd17d6a0b52 /py/obj.h | |
parent | 5c6783496d8211eb4b19cec2cbb2b66e2a37f0eb (diff) | |
download | micropython-8594ce228011e6264f59ade4ff8a7f2bfa90a649.tar.gz micropython-8594ce228011e6264f59ade4ff8a7f2bfa90a649.zip |
py: Implement divmod, % and proper // for floating point.
Tested and working on unix and pyboard.
Diffstat (limited to 'py/obj.h')
-rw-r--r-- | py/obj.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -487,6 +487,7 @@ 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); |