diff options
author | Damien George <damien.p.george@gmail.com> | 2014-02-22 19:25:23 +0000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-02-22 19:25:23 +0000 |
commit | 438c88dd2fbf8250883882188cca513ce534271f (patch) | |
tree | 601f43c00efc8ad90d04891ddc61cbb6351a6aeb /py/obj.h | |
parent | 20773971186151b53426bd607908546598036a16 (diff) | |
download | micropython-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.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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 |