diff options
author | Damien George <damien.p.george@gmail.com> | 2014-03-01 19:50:50 +0000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-03-01 19:50:50 +0000 |
commit | 06201ff3d6d9485b2657fc9ac4aa8a306884322f (patch) | |
tree | ade288601c3afccafa403ee8e7e569b83c1d8443 /py/parsenumbase.h | |
parent | 793838a919c9cb848cb8c3f2d88d8b347bfd6083 (diff) | |
download | micropython-06201ff3d6d9485b2657fc9ac4aa8a306884322f.tar.gz micropython-06201ff3d6d9485b2657fc9ac4aa8a306884322f.zip |
py: Implement bit-shift and not operations for mpz.
Implement not, shl and shr in mpz library. Add function to create mpzs
on the stack, used for memory efficiency when rhs is a small int.
Factor out code to parse base-prefix of number into a dedicated function.
Diffstat (limited to 'py/parsenumbase.h')
-rw-r--r-- | py/parsenumbase.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/py/parsenumbase.h b/py/parsenumbase.h new file mode 100644 index 0000000000..483596e329 --- /dev/null +++ b/py/parsenumbase.h @@ -0,0 +1 @@ +int mp_parse_num_base(const char *str, uint len, int *base); |