| Commit message (Collapse) | Author | Age |
|
|
|
|
|
|
| |
Blanket wide to all .c and .h files. Some files originating from ST are
difficult to deal with (license wise) so it was left out of those.
Also merged modpyb.h, modos.h, modstm.h and modtime.h in stmhal/.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
Made solely to unbreak int-long.py test which in turn uncovered thinko
with implementation of inplace ops. On mpz level, bitwise ops implemented
only for same-sign numbers, and are not efficient (unconditional calling of
mpn_cmp() is apparently superfluous).
|
|
|
|
| |
A couple of bugs in mpn_shl, and overflow bug in mpz_set_from_int.
|
| |
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
| |
Also change int -> machine_int_t where appropriate.
|
|
Some functionality is still missing (eg and, or, bit shift), and some
things are buggy (eg subtract).
|