Skip to content

Releases: Hypercubed/as-mpz

v2.2.0

10 Feb 18:33
Compare
Choose a tag to compare
  • Feature: Implement MpZ.asIntN and MpZ.asUintN.
  • Feature: Implement #fact.
  • Feature: Implement MpZ.random.
  • Feature: Implement #isqrt and #iroot.
  • Feature: Implement #log2 and #log10.
  • Feature: Implement #gcd and #lcm.
  • Improvement: Improve #mod performance.
  • Improvement: Improve #toHex, #toDecimal performance.
  • Improvement: Improve #add and #sub performance.
  • Bugfix: Make #not public.

v2.1.0

10 Feb 18:38
Compare
Choose a tag to compare
  • Feature: Implement #inc and #dec.
  • Improvement: Improve #add performance.
  • bugfix: Fix ++ and -- operators for negative numbers.

v2.0.0

28 Jan 04:35
Compare
Choose a tag to compare

2.0.0 (2024-01-27)

  • Breaking: Renamed #cmp to #compareTo.
  • Breaking: Renamed #neg to #negate.
  • Feature: Implement #sign.
  • Feature: Implement bitshift operators (<<, >>) and methods (#shiftLeft, #shiftRight) as "2-complement" (i.e. arithmetic) shifts.
  • Feature: Implement #mul_pow2 and #div_pow2.
  • Feature: Implement bitwise methods (#and, #or, #xor, #not) and operators (&, |, ^, ~) as "2-complement" like.
  • Bugfix: Fix toString for negitive numbers when radix not equal to 10 or 16.