-
Notifications
You must be signed in to change notification settings - Fork 131
add eip-7883 changes #3399
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
base: master
Are you sure you want to change the base?
add eip-7883 changes #3399
Conversation
if maxLen > 32.u256: | ||
result = maxLen + 7 | ||
result = result div 8 | ||
result = result * result |
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.
Is there a reason for this result = result ...
accumulator style? If it were managing to be truly in-place with these large operands, that might be interesting, but it's using formally full calculation then assignment style.
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.
iirc stint doesn't have *=
operator.
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.
Sure, but then why not use a more usual expression style rather than accumulate through result
? It's not really saving any CPU or memory that I can tell.
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.
no particular reason, feel free to rewrite it using expression style.
ethereum/EIPs@5cdd751#diff-deb61419789ec2f1fd580a01375e9c1ab84989138683faf6ab2306283219bcaeL32-R32