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

add u256 multiplication #84

Merged
merged 2 commits into from
Jun 16, 2023
Merged

add u256 multiplication #84

merged 2 commits into from
Jun 16, 2023

Conversation

peterjah
Copy link
Contributor

I took the logic from this golang lib:
https://github.com/holiman/uint256
it is the library used in go-ethereum to handle uint256 operation

assembly/globals.ts Outdated Show resolved Hide resolved
assembly/globals.ts Outdated Show resolved Hide resolved
assembly/globals.ts Outdated Show resolved Hide resolved
assembly/globals.ts Outdated Show resolved Hide resolved
assembly/globals.ts Outdated Show resolved Hide resolved
@MaxGraey
Copy link
Owner

MaxGraey commented Jun 16, 2023

Could you also mention original https://github.com/holiman/uint256 in comments for __mul256?
Otherwise LGTM.

@peterjah peterjah force-pushed the 256_mul branch 2 times, most recently from 851a6e8 to 0c070dd Compare June 16, 2023 14:44
@MaxGraey MaxGraey merged commit 9767896 into MaxGraey:master Jun 16, 2023
@MaxGraey
Copy link
Owner

Thanks!

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