as-mpz

Arbitrary precision integer library for AssemblyScript.

MIT License

Downloads
36
Stars
5

Bot releases are hidden (Show)

as-mpz - v2.1.0 Latest Release

Published by Hypercubed 8 months ago

  • Feature: Implement #inc and #dec.
  • Improvement: Improve #add performance.
  • bugfix: Fix ++ and -- operators for negative numbers.
as-mpz - v2.2.0

Published by Hypercubed 8 months ago

  • 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.
as-mpz - v2.0.0

Published by Hypercubed 9 months ago

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.