-
Notifications
You must be signed in to change notification settings - Fork 45
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
incorporate bytes<->words conversion from fiat-crypto #156
Comments
@andres-erbsen I'm not quite sure what functions you're referring to, but I have some remarks on some snippets in that file:
If you replace
I just proved this in this commit.
This looks like an anti-pattern to me: Instead of
I would use
In general, what I've learned from @andres-erbsen is that you should pass to |
Yeah, I think I may have been responsible for some of the bytes conversion confusion there (but note that the conversion will need to happen anyway when allocating new bignums, the question is just where). |
by "allocating new bignums", do you mean calling |
bumping a pointer (local variable) representing the end of a data stack |
or perhaps eventually the same but done on the actual control stack by the compiler |
Not sure whether it's the same in fiat-crypto, but in the compiler, the only thing I put onto the stack are machine words, so I keep my assertions about the stack as array |
@jadephilipoom wrote functions to convert between bytes and words, they are in fiat-crypto branch
bedrock2_examples
filesrc/Bedrock/UnsaturatedSolinas.v
:).The text was updated successfully, but these errors were encountered: