54 Commits (b84e1231c969debe387fad3b5ee924cb56824e0b)

Author SHA1 Message Date
Damien George 460b086333 py/mpz: Fix mpn_div so that it doesn't modify memory of denominator. 9 years ago
Damien George 65402ab1ec py/mpz: Do Python style division/modulo within bignum divmod routine. 9 years ago
Damien George dc3faea040 py/mpz: Fix bug with overflowing C-shift in division routine. 9 years ago
Damien George ff1a96ce2c py/mpz: Add commented-out mpz_pow3_inpl function, to compute (x**y)%z. 9 years ago
Doug Currie 2e2e15cec2 py/mpz: Complete implementation of mpz_{and,or,xor} for negative args. 9 years ago
Damien George 2adf7ec3dd py/mpz: Fix conversion of float to mpz so it works on big endian archs. 9 years ago
Paul Sokolovsky b3be4710aa py/mpz: Normalize (remove leading zeros) xor operation result. 9 years ago
Damien George 2065373f67 py/mpz: Fix bignum anding of large negative with smaller positive int. 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 4c02e54298 py/mpz: Raise NotImplError instead of failing assertion. 9 years ago
Damien George 9472907ae1 py: Fix handling of negative numbers in struct.pack of q/Q. 10 years ago
Damien George 271d18eb08 py: Support conversion of bignum to bytes. 10 years ago
Damien George f66ee4dfd7 py/mpz.c: Fix bug with shl not truncating zero digits correctly. 10 years ago
Damien George 4dea922610 py: Adjust some spaces in code style/format, purely for consistency. 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 a9dc9b8f6d py: Fix comparison of minus-zero long int. 10 years ago
David Steinberg 8d427b7ab7 py: Fix issue in mpz_set_from_float() when mp_int_t is larger than float 10 years ago
David Steinberg c585ad1020 py: Move mp_float_t related defines to misc.h 10 years ago
Damien George ff8dd3f486 py, unix: Allow to compile with -Wunused-parameter. 10 years ago
Damien George 963a5a3e82 py, unix: Allow to compile with -Wsign-compare. 10 years ago
Damien George 58056b0f43 py: Fix handling of "0" mpz in some functions. 10 years ago
Damien George 6fd4b36bc5 py: Raise exception if trying to convert inf/nan to int. 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 e0ac194f4f py: Fix rshift and not of zero/one edge cases in mpz. 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 1c70cbf151 py: Save about 200 bytes of ROM by using smaller type for static table. 10 years ago
Damien George 5d9b816449 py: Fix bug in mpn_shl (multi-prec int shift left). 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. 11 years ago
Paul Sokolovsky 59c675a64c py: Include mpconfig.h before all other includes. 11 years ago
Damien George fb510b3bf9 Rename bultins config variables to MICROPY_PY_BUILTINS_*. 11 years ago
Damien George f55cf10101 py: Implement bignum '&' with negatives on lhs and rhs. 11 years ago
Damien George 51fab28e94 py: Improve mpz_and function. 11 years ago
Damien George 561e425903 py: Fix bug in mpz_and function. 11 years ago
stijn 01d6be4d51 Windows MSVC port 11 years ago
Damien George 04b9147e15 Add license header to (almost) all files. 11 years ago
Damien George eec91057b8 py: Add comment mpz function, and free memory used for string printing. 11 years ago
Dave Hylands c4029e5079 Add string formatting support for longlong and mpz. 11 years ago
Damien George 5bf565e353 py: Handle small int power overflow correctly. 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