mirror of
https://github.com/micropython/micropython.git
synced 2026-01-06 20:20:14 +01:00
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.
This commit is contained in:
1
py/parsenumbase.h
Normal file
1
py/parsenumbase.h
Normal file
@@ -0,0 +1 @@
|
||||
int mp_parse_num_base(const char *str, uint len, int *base);
|
||||
Reference in New Issue
Block a user