summaryrefslogtreecommitdiffstatshomepage
path: root/py/obj.h
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-09-13 18:43:09 +0100
committerDamien George <damien.p.george@gmail.com>2014-09-13 18:43:09 +0100
commit8594ce228011e6264f59ade4ff8a7f2bfa90a649 (patch)
tree528fa7008c5e4c4b283c33abcf3eefd17d6a0b52 /py/obj.h
parent5c6783496d8211eb4b19cec2cbb2b66e2a37f0eb (diff)
downloadmicropython-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.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/py/obj.h b/py/obj.h
index eff4a4eafc..c7745dc9eb 100644
--- a/py/obj.h
+++ b/py/obj.h
@@ -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);