summaryrefslogtreecommitdiff
path: root/py/mpz.c
AgeCommit message (Collapse)Author
2014-07-24py: Make long ints hashable.Damien George
Addresses issue #765.
2014-07-03Rename machine_(u)int_t to mp_(u)int_t.Damien George
See discussion in issue #50.
2014-06-21py: Include mpconfig.h before all other includes.Paul Sokolovsky
It defines types used by all other headers. Fixes #691.
2014-06-01Rename bultins config variables to MICROPY_PY_BUILTINS_*.Damien George
This renames: MICROPY_PY_FROZENSET -> MICROPY_PY_BUILTINS_FROZENSET MICROPY_PY_PROPERTY -> MICROPY_PY_BUILTINS_PROPERTY MICROPY_PY_SLICE -> MICROPY_PY_BUILTINS_SLICE MICROPY_ENABLE_FLOAT -> MICROPY_PY_BUILTINS_FLOAT See issue #35 for discussion.
2014-05-29py: Implement bignum '&' with negatives on lhs and rhs.Damien George
Needs proper coverage testing. Doesn't implement -ve & -ve. Addresses issue #611.
2014-05-13py: Improve mpz_and function.Damien George
This should now have correct (and optimal) behaviour.
2014-05-12py: Fix bug in mpz_and function.Damien George
Addresses issue #610.
2014-05-08Windows MSVC portstijn
Extend the windows port so it compiles with the toolchain from Visual Studio 2013
2014-05-03Add license header to (almost) all files.Damien George
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/.
2014-04-08py: Add comment mpz function, and free memory used for string printing.Damien George
2014-04-07Add string formatting support for longlong and mpz.Dave Hylands
2014-04-04py: Handle small int power overflow correctly.Damien George
2014-04-03py: More robust int conversion and overflow checking.Damien George
2014-03-23objint_mpz: Quick&dirty implementation of bitwise operations.Paul Sokolovsky
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).
2014-03-12py: Fix some bugs in mpz; add mpz_from_ll and mpz_set_from_ll.Damien George
A couple of bugs in mpn_shl, and overflow bug in mpz_set_from_int.
2014-03-08py: Wrap mpz float functions in MICROPY_ENABLE_FLOAT.Damien George
2014-03-01py: Implement bit-shift and not operations for mpz.Damien George
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.
2014-02-26py: Start to implement shl/shr for mpz. Fix return void.Damien George
2014-02-24py: Fix mpn_sub, was increasing wrong source pointer.Damien George
Also change int -> machine_int_t where appropriate.
2014-02-22Add arbitrary precision integer support.Damien George
Some functionality is still missing (eg and, or, bit shift), and some things are buggy (eg subtract).