-
Notifications
You must be signed in to change notification settings - Fork 152
Migrate driver::util::math into alloy #3880
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
jmg-duarte
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Notes for reviewers:
squadgazzz
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
try_info -> custom operation, check the most significant limbs after U256 for overflow and return None if they're not 0 (i.e. overflow happened)
This is not true anymore, right?
Updated, good catch |
m-sz
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
# Description Migrate driver::util::math into alloy The replacement of U256s implies that we no longer have the same operations available and need to implement some by hand. Notes on operations: * full_mul -> widening_mul (kudos @squadgazzz) # Changes - [ ] Migrate driver::util::math into alloy - [ ] Refactors where applicable - [ ] Adds unit tests ## How to test N/A
Description
Migrate driver::util::math into alloy
The replacement of U256s implies that we no longer have the same operations available and need to implement some by hand.
Notes on operations:
Changes
How to test
N/A