Skip to content

v0.4.3

Choose a tag to compare

@neogenie neogenie released this 12 Aug 09:24
· 29 commits to master since this release

This release is mostly focused on fix: #32.
A lot of work was done, but a huge part of the optimization should still be completed.

Added

  • Added core mathematical operations:
    • widening_mul: full 256-bit multiplication for 128-bit integers
    • div_digit: optimized division by single 64-bit digit
    • decimal_digits: efficient decimal digit counting
    • remaining_decimal_digits: safe decimal scaling calculation
    • can_scaled_by_power_of_ten: overflow prevention for decimal operations

Fixed

  • Fixed postgres padding overflowing #43.
  • Fixed bug in widening_mul for u128 where high bits were incorrectly handled.
  • Fixed incorrect overflow detection in large number multiplication.
  • Fixed edge cases in power-of-ten scaling operations.

Performance

  • Optimized division algorithm for decimal numbers.
  • Optimized multiplication algorithm for 128-bit integers.
  • Improved overflow checking using precomputed values.
  • Enhanced decimal digit counting performance.

Internal

  • Improved code documentation with detailed algorithm descriptions.
  • Added comprehensive examples for core numeric operations.
  • Enhanced performance-related documentation.

Documentation

  • Minor fixes.