summaryrefslogtreecommitdiffstatshomepage
path: root/py/obj.h
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-02-22 19:25:23 +0000
committerDamien George <damien.p.george@gmail.com>2014-02-22 19:25:23 +0000
commit438c88dd2fbf8250883882188cca513ce534271f (patch)
tree601f43c00efc8ad90d04891ddc61cbb6351a6aeb /py/obj.h
parent20773971186151b53426bd607908546598036a16 (diff)
downloadmicropython-438c88dd2fbf8250883882188cca513ce534271f.tar.gz
micropython-438c88dd2fbf8250883882188cca513ce534271f.zip
Add arbitrary precision integer support.
Some functionality is still missing (eg and, or, bit shift), and some things are buggy (eg subtract).
Diffstat (limited to 'py/obj.h')
-rw-r--r--py/obj.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/py/obj.h b/py/obj.h
index c2b127c328..88202bbcc0 100644
--- a/py/obj.h
+++ b/py/obj.h
@@ -225,6 +225,9 @@ mp_obj_t mp_obj_new_cell(mp_obj_t obj);
mp_obj_t mp_obj_new_int(machine_int_t value);
mp_obj_t mp_obj_new_int_from_uint(machine_uint_t value);
mp_obj_t mp_obj_new_int_from_long_str(const char *s);
+#if MICROPY_LONGINT_IMPL != MICROPY_LONGINT_IMPL_NONE
+mp_obj_t mp_obj_new_int_from_ll(long long val);
+#endif
mp_obj_t mp_obj_new_str(const byte* data, uint len, bool make_qstr_if_not_already);
mp_obj_t mp_obj_new_bytes(const byte* data, uint len);
#if MICROPY_ENABLE_FLOAT