-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Refactor sqrt function and update dependencies Replaced custom square root logic with num-integer's built-in `sqrt` method for simplicity and efficiency. Updated `fastnum` features and added `num-integer` as a new dependency in Cargo.toml. Adjusted `Token` macros to use fully qualified `alloy_primitives::Address`. * Optimize `Fraction` arithmetic with GCD normalization Refactored Fraction operations to include GCD-based normalization, improving efficiency and consistency. Introduced `bnum` and `num_integer` dependencies for better large number handling and casting. Updated arithmetic methods to ensure reduced fractions and avoid overflow by leveraging `I1024` and casting. * Add `bnum` and `num_integer` to library exports This change adds `bnum` and `num_integer::Integer` to the library's exports, making them available for external use. These additions enhance the library's functionality and compatibility with numeric operations and utilities.
- Loading branch information
Showing
5 changed files
with
53 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters