Skip to content
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

Modulo division operation for Uint128 & Uint256 types #435

Merged
merged 2 commits into from Jul 22, 2020
Merged

Modulo division operation for Uint128 & Uint256 types #435

merged 2 commits into from Jul 22, 2020

Conversation

dr-orlovsky
Copy link
Collaborator

No description provided.

Copy link
Collaborator

@stevenroose stevenroose left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

implementation LGTM, you have an indentation wrong though

src/util/uint.rs Outdated Show resolved Hide resolved
@TheBlueMatt
Copy link
Member

Can you add to the u128-comparison fuzz test?

@dr-orlovsky
Copy link
Collaborator Author

With the new push, fuzz test is added + indentation problem is fixed.

Copy link
Contributor

@sgeisler sgeisler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Member

@elichai elichai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we can merge this, and in a follow up PR I can optimize it to remove the subtraction and the multiplication (sub_copy in the division actually contains the remainder already)

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.

None yet

5 participants