-
Notifications
You must be signed in to change notification settings - Fork 238
ed448-goldilocks: assorted fixes and improvements #1302
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
I was wondering why this PR looks so big. But I just forgot to rebase it on top of #1300. |
fn square_n(&self, mut n: u32) -> FieldElement { | ||
let mut result = self.square(); | ||
fn square_n<const N: u32>(&self) -> FieldElement { |
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.
Curious if this change actually impacts codegen in any way (i.e. for the better)
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.
I didn't check the codegen, but I benchmarked the inversion method and there were no changes.
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.
Feels kind of six of one, half dozen of another in that case
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.
I made this change to prevent accidental variable time usage.
But let me know and I can just remove it.
This PR includes some assorted fixes and improvements from #1291.
They are split into descriptive commits for your convenience.