Skip to content

[integer] Optimize BigUInt type and its arithmetic operations#56

Merged
forfudan merged 2 commits intomainfrom
work
Mar 25, 2025
Merged

[integer] Optimize BigUInt type and its arithmetic operations#56
forfudan merged 2 commits intomainfrom
work

Conversation

@forfudan
Copy link
Copy Markdown
Owner

This pull request includes several changes to the DeciMojo library, focusing on improving the BigUInt type and its arithmetic operations. The most important changes involve refactoring methods for better performance and clarity, and updating documentation.

Documentation Updates:

  • README.md: Updated the description of BigInt to specify that it is a base-10 arbitrary-precision integer type. Added a detailed explanation of the nomenclature and the design philosophy behind DeciMojo. [1] [2]

Code Refactoring:

New Methods:

Constructor and Initialization Changes:

  • src/decimojo/biguint/biguint.mojo: Updated BigUInt constructors to differentiate between raw and validated word initialization. Introduced from_words for validated initialization and updated the documentation accordingly. [1] [2] [3] [4] [5]

Additional Enhancements:

@forfudan forfudan merged commit 3d6f1a1 into main Mar 25, 2025
1 check passed
@forfudan forfudan deleted the work branch March 25, 2025 19:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant