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

Convert consts to field elements from u32 if possible #131

Open
tohrnii opened this issue Jan 31, 2023 · 0 comments
Open

Convert consts to field elements from u32 if possible #131

tohrnii opened this issue Jan 31, 2023 · 0 comments
Labels

Comments

@tohrnii
Copy link
Contributor

tohrnii commented Jan 31, 2023

If we know that a constant value is smaller than u32 we should try to use conversions from u32. For example: E::from(2_u32) instead of E::from(2_u64) as we may come up with a more efficient reduction for smaller values later on.

Originally posted by @bobbinth in #58 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant