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

feat(vm): add remainder precompile #174

Merged
merged 1 commit into from
Oct 5, 2023
Merged

Conversation

youben11
Copy link
Member

@youben11 youben11 commented Oct 4, 2023

  • support remainder as an independent precompile
  • support remainder through the fhelib precompile
  • still need to confirm the amount of gas

Copy link
Collaborator

@dartdart26 dartdart26 left a comment

Choose a reason for hiding this comment

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

Looks good!

Comment on lines +3226 to +3229
func TestFheLibRem8(t *testing.T) {
FheLibRem(t, FheUint8, true)
}

Copy link
Collaborator

Choose a reason for hiding this comment

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

Is there a particular reason why we test 8 bit only for FheLibRem? I am just posting it here, but it is not related to this PR. I guess we will remove non-lib tests at some point.

Copy link
Member Author

Choose a reason for hiding this comment

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

I mainly followed tests for div. I can add more in the current PR, or make another PR to go through all the tests and add 16 and 32 bits tests.

@youben11 youben11 merged commit 9fa664f into 1.10.19-zama Oct 5, 2023
2 checks passed
@youben11 youben11 deleted the feat/remainder branch October 5, 2023 13:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants