diff options
author | Damien George <damien.p.george@gmail.com> | 2015-02-13 10:43:05 +0000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2015-02-13 10:43:05 +0000 |
commit | 32f0b7942cf44b7a722db30c554cfc70d3f70289 (patch) | |
tree | 1215d637b956ce93d5c36dd2a4e2bd0bd6999882 /py/objfun.c | |
parent | 0d967b8ae4f26815549aa2fb301e7bbaa5e262c2 (diff) |
py: Implement sdiv/udiv for inline Thumb assembler.
Diffstat (limited to 'py/objfun.c')
-rw-r--r-- | py/objfun.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/py/objfun.c b/py/objfun.c index 28706cc68..75a326c12 100644 --- a/py/objfun.c +++ b/py/objfun.c @@ -431,6 +431,8 @@ STATIC mp_uint_t convert_obj_for_inline_asm(mp_obj_t obj) { return 0; } else if (obj == mp_const_true) { return 1; + } else if (MP_OBJ_IS_TYPE(obj, &mp_type_int)) { + return mp_obj_int_get_truncated(obj); } else if (MP_OBJ_IS_STR(obj)) { // pointer to the string (it's probably constant though!) mp_uint_t l; |