46 Commits (659113825d10bf2ae71dd215a8597451e505982d)

Author SHA1 Message Date
Angus Gratton 908ab1ceca py/objint: Fix int.to_bytes() buffer size checks. 11 months ago
Damien George 2c139bbf4e py/mpz: Fix bugs with bitwise of -0 by ensuring all 0's are positive. 3 years ago
David Lechner 8a4ce6b79a tools/codeformat.py: Eliminate need for sizeof fixup. 5 years ago
Damien George 69661f3343 all: Reformat C and Python source code with tools/codeformat.py. 5 years ago
Damien George 9766fddcdc py/mpz: Simplify handling of borrow and quo adjustment in mpn_div. 7 years ago
Alexander Steffen 55f33240f3 all: Use the name MicroPython consistently in comments 7 years ago
Damien George 04552ff71b py: Implement raising a big-int to a negative power. 7 years ago
Damien George 4d1fb6107f py/mpz: Make mpz_is_zero() an inline function. 7 years ago
Alexander Steffen 299bc62586 all: Unify header guard usage. 7 years ago
Damien George 6ed77bedbd py/mpz: Change type of "base" args from mp_uint_t to unsigned int. 8 years ago
Damien George eb90edb5c0 py/mpz: Remove obsolete declaration of mpz_as_str_size. 8 years ago
Damien George dcdcc43dad py/mpz: Convert mp_uint_t to size_t where appropriate. 8 years ago
Nicko van Someren df0117c8ae py: Added optimised support for 3-argument calls to builtin.pow() 8 years ago
Paul Sokolovsky 1b42f5251f py/mpz: Implement mpz_set_from_bytes() as a foundation for int.from_bytes(). 8 years ago
Damien George 8bb7d958f1 py: Factor duplicated function to calculate size of formatted int. 8 years ago
stijn 3baf6b5319 windows/py: Support 64bit mingw-w64 builds 9 years ago
Damien George 2f4e8511cd py/mpz: Force rhs of mpz_shl_inpl/mpz_shr_inpl to be unsigned. 9 years ago
Damien George 8b4fb4fe14 py/mpz: Fix calculation of max digit storage for mpz; fix sys.maxsize. 9 years ago
Damien George 271d18eb08 py: Support conversion of bignum to bytes. 10 years ago
Damien George 3f327cc4c6 py: Allow MPZ_DIG_SIZE to be optionally configured by a port. 10 years ago
Damien George 848dd0e762 py: Make some mpz functions static and remove unused ones. 10 years ago
Damien George a2e383820d py: Clean up and comment out unused functions in mpz. 10 years ago
Damien George 5c670acb1f py: Be more machine-portable with size of bit fields. 10 years ago
David Steinberg 6e0b6d02db py: Fix float to int conversion for large exponents. 10 years ago
Damien George 51dfcb4bb7 py: Move to guarded includes, everywhere in py/ core. 10 years ago
Damien George b4fe6e28eb py: Fix function type: () -> (void). 10 years ago
stijn 0e557facb9 mpz: Fix 64bit msvc build 10 years ago
Damien George 42f3de924b py: Convert [u]int to mp_[u]int_t where appropriate. 10 years ago
Damien George 953074315e py: Enable struct/binary-helper to parse q and Q sized ints. 10 years ago
Damien George 9a21d2e070 py: Make mpz able to use 16 bits per digit; and 32 on 64-bit arch. 10 years ago
Damien George afb1cf75dd py: Convert (u)int to mp_(u)int_t in mpz, and remove unused function. 10 years ago
Damien George c9aa58e638 py: Improve handling of long-int overflow. 10 years ago
Damien George ffe911d228 py: Make long ints hashable. 10 years ago
Damien George 40f3c02682 Rename machine_(u)int_t to mp_(u)int_t. 10 years ago
Damien George fb510b3bf9 Rename bultins config variables to MICROPY_PY_BUILTINS_*. 11 years ago
Damien George 04b9147e15 Add license header to (almost) all files. 11 years ago
Dave Hylands c4029e5079 Add string formatting support for longlong and mpz. 11 years ago
Damien George 8270e3853d py: More robust int conversion and overflow checking. 11 years ago
Paul Sokolovsky 57207b8818 objint_mpz: Quick&dirty implementation of bitwise operations. 11 years ago
Damien George bb4a43f35c py: Fix some bugs in mpz; add mpz_from_ll and mpz_set_from_ll. 11 years ago
Damien George 5260810d70 py: Wrap mpz float functions in MICROPY_ENABLE_FLOAT. 11 years ago
Damien George 06201ff3d6 py: Implement bit-shift and not operations for mpz. 11 years ago
Damien George 510477557d py: Take out bitfield entries from their own structure. 11 years ago
Damien George c5ac2ac590 py: Start to implement shl/shr for mpz. Fix return void. 11 years ago
Damien George aca141269e py: Fix mpn_sub, was increasing wrong source pointer. 11 years ago
Damien George 438c88dd2f Add arbitrary precision integer support. 11 years ago