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: support large literals in FF-limb decomp #53

Merged
merged 2 commits into from
Apr 4, 2024

Conversation

IlyasRidhuan
Copy link

No description provided.

@@ -346,7 +346,7 @@ fn craft_expression<T: FieldElement>(
return (
1,
format!(
"FF(uint256_t{{{}, {}, {}, {}}})",
"FF(uint256_t{{{}LLU, {}LLU, {}LLU, {}LLU}})",
Copy link
Collaborator

Choose a reason for hiding this comment

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

UL should do the job as we need integers of 64 bits, i.e., unsigned long on this architecture.
I am however very puzzled on how it compiled in the past as we have occurences like 2^48.

@jeanmon jeanmon merged commit 10267b9 into AztecProtocol:avm Apr 4, 2024
1 of 2 checks passed
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.

2 participants