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

Make argument of fe_normalizes_to_zero{_var} const #903

Merged
merged 1 commit into from
Mar 26, 2021

Conversation

sipa
Copy link
Contributor

@sipa sipa commented Mar 12, 2021

These functions do not modify their argument.

Copy link
Contributor

@apoelstra apoelstra left a comment

Choose a reason for hiding this comment

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

ack 147494c

@peterdettman
Copy link
Contributor

As the method comments say, it can optionally normalize the value. I believe this had something to do with one of the field implementations at the time (openssl, gmp??) not really having a good option with a const argument. Don't recall. Presumably it is a redundant consideration now.

@sipa
Copy link
Contributor Author

sipa commented Mar 13, 2021

@peterdettman Ha, good point. At least the comments should be updated.

@sipa sipa force-pushed the 202103_const_norm_to_zero branch from 147494c to 23c3fb6 Compare March 15, 2021 23:02
@sipa
Copy link
Contributor Author

sipa commented Mar 15, 2021

Updated the function descriptions.

Copy link
Contributor

@real-or-random real-or-random left a comment

Choose a reason for hiding this comment

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

ACK 23c3fb6 diff looks good

Copy link
Contributor

@jonasnick jonasnick left a comment

Choose a reason for hiding this comment

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

ACK 23c3fb6

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.

5 participants