aboutsummaryrefslogtreecommitdiff
path: root/py/mpz.c
AgeCommit message (Expand)Author
2021-12-21py/mpz: Fix bugs with bitwise of -0 by ensuring all 0's are positive.Damien George
2021-06-24all: Fix signed shifts and NULL access errors from -fsanitize=undefined.Jeff Epler
2021-02-08py/mpz: Fix overflow of borrow in mpn_div.Damien George
2021-02-04py: Rename WORD_MSBIT_HIGH to MP_OBJ_WORD_MSBIT_HIGH.Damien George
2020-11-11py/mpz: Do sign extension in mpz_as_bytes for negative values.Damien George
2020-04-23all: Format code to add space after C++-style comment start.stijn
2020-02-28all: Reformat C and Python source code with tools/codeformat.py.Damien George
2020-02-18py: Factor out definition of mp_float_union_t to one location.Damien George
2018-05-21py/mpz: Avoid undefined behavior at integer overflow in mpz_hash.Jeff Epler
2018-02-25py/mpz: In mpz_clone, remove unused check for NULL dig.Damien George
2017-12-29py/mpz: In mpz_as_str_inpl, convert always-false checks to assertions.Damien George
2017-12-29py/mpz: Simplify handling of borrow and quo adjustment in mpn_div.Damien George
2017-12-19py/mpz: Apply a small code-size optimisation.Damien George
2017-12-19py/mpz: Fix pow3 function so it handles the case when 3rd arg is 1.Damien George
2017-07-31all: Use the name MicroPython consistently in commentsAlexander Steffen
2017-07-25py: Implement raising a big-int to a negative power.Damien George
2017-07-25py/mpz: Make mpz_is_zero() an inline function.Damien George
2017-04-25py/mpz: In mpn_sub, use existing function to remove trailing zeros.Damien George
2017-04-25py/mpz: Strip trailing zeros from mpz value when set from bytes.Damien George
2017-02-16py/mpz: Change type of "base" args from mp_uint_t to unsigned int.Damien George
2017-02-16py/mpz: Remove obsolete declaration of mpz_as_str_size.Damien George
2017-02-16py/mpz: Convert mp_uint_t to size_t where appropriate.Damien George
2017-02-02py: Added optimised support for 3-argument calls to builtin.pow()Nicko van Someren
2017-01-21py/mpz: Implement mpz_set_from_bytes() as a foundation for int.from_bytes().Paul Sokolovsky
2016-12-28py/mpz: Fix assertion in mpz_set_from_str which checks value of base.Damien George
2016-12-14py/mpz: Remove unreachable code in mpn_or_neg functions.Damien George
2016-10-31py: fix null pointer dereference in mpz.c, fix missing va_end in warning.cPavol Rusnak
2016-10-11py: Factor duplicated function to calculate size of formatted int.Damien George
2016-10-11py/mpz: Use assert to verify mpz does not have a fixed digit buffer.Damien George
2016-10-11py/mpz: In divmod, replace check for rhs!=0 with assert.Damien George
2016-05-09py/mpz: Fix mpn_div so that it doesn't modify memory of denominator.Damien George
2016-05-08py/mpz: Do Python style division/modulo within bignum divmod routine.Damien George
2016-05-08py/mpz: Fix bug with overflowing C-shift in division routine.Damien George
2016-02-03py/mpz: Add commented-out mpz_pow3_inpl function, to compute (x**y)%z.Damien George
2016-02-03py/mpz: Complete implementation of mpz_{and,or,xor} for negative args.Doug Currie
2016-01-08py/mpz: Fix conversion of float to mpz so it works on big endian archs.Damien George
2015-11-22py/mpz: Normalize (remove leading zeros) xor operation result.Paul Sokolovsky
2015-10-01py/mpz: Fix bignum anding of large negative with smaller positive int.Damien George
2015-10-01py/mpz: Force rhs of mpz_shl_inpl/mpz_shr_inpl to be unsigned.Damien George
2015-10-01py/mpz: Raise NotImplError instead of failing assertion.Damien George
2015-04-25py: Fix handling of negative numbers in struct.pack of q/Q.Damien George
2015-04-25py: Support conversion of bignum to bytes.Damien George
2015-04-22py/mpz.c: Fix bug with shl not truncating zero digits correctly.Damien George
2015-04-09py: Adjust some spaces in code style/format, purely for consistency.Damien George
2015-03-12py: Make some mpz functions static and remove unused ones.Damien George
2015-03-02py: Clean up and comment out unused functions in mpz.Damien George
2015-01-27py: Fix comparison of minus-zero long int.Damien George
2015-01-24py: Fix issue in mpz_set_from_float() when mp_int_t is larger than floatDavid Steinberg
2015-01-24py: Move mp_float_t related defines to misc.hDavid Steinberg
2015-01-20py, unix: Allow to compile with -Wunused-parameter.Damien George