69 Commits (bbced3b4bbc8fd7ed7843d39143b6c600adc2c60)

Author SHA1 Message Date
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
Damien George f85fd79c6c py/mpz: In mpn_sub, use existing function to remove trailing zeros. 8 years ago
Damien George c7aa86ce6f py/mpz: Strip trailing zeros from mpz value when set from bytes. 8 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 2d9440e2d1 py/mpz: Fix assertion in mpz_set_from_str which checks value of base. 8 years ago
Damien George e83f140463 py/mpz: Remove unreachable code in mpn_or_neg functions. 8 years ago
Pavol Rusnak 3679ee9b52 py: fix null pointer dereference in mpz.c, fix missing va_end in warning.c 8 years ago
Damien George 8bb7d958f1 py: Factor duplicated function to calculate size of formatted int. 8 years ago
Damien George df3e5d2b2f py/mpz: Use assert to verify mpz does not have a fixed digit buffer. 8 years ago
Damien George 48874942f0 py/mpz: In divmod, replace check for rhs!=0 with assert. 8 years ago
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