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: uint512 div mod #153

Merged
merged 9 commits into from
Nov 20, 2023
Merged

Conversation

greged93
Copy link
Contributor

@greged93 greged93 commented Nov 4, 2023

Implements the uint512 div mod uint256 hint for the hint runner. Resolves #112.

pkg/hintrunner/hint.go Outdated Show resolved Hide resolved
@greged93 greged93 force-pushed the feat/uint512-div-mod branch 2 times, most recently from 8e33778 to ecb8eb4 Compare November 7, 2023 14:00
Copy link
Contributor

@rodrigo-pino rodrigo-pino left a comment

Choose a reason for hiding this comment

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

Hey @greged93, great work, thanks for your contribution! Left some comments but they are mostly nitpicks

pkg/hintrunner/hint.go Show resolved Hide resolved
pkg/hintrunner/hint.go Outdated Show resolved Hide resolved
pkg/hintrunner/hint.go Outdated Show resolved Hide resolved
pkg/hintrunner/hint_test.go Outdated Show resolved Hide resolved
pkg/hintrunner/hint_test.go Outdated Show resolved Hide resolved
pkg/hintrunner/hint_test.go Outdated Show resolved Hide resolved
pkg/hintrunner/hint.go Outdated Show resolved Hide resolved
pkg/hintrunner/hint.go Outdated Show resolved Hide resolved
@greged93 greged93 force-pushed the feat/uint512-div-mod branch from ecb8eb4 to aa6ee36 Compare November 10, 2023 09:34
pkg/hintrunner/hint.go Show resolved Hide resolved
pkg/hintrunner/hint.go Show resolved Hide resolved
@rodrigo-pino
Copy link
Contributor

Could you add a benchmark test as well, that would be in the dedicated hint_benchmark_test.go. The goal of this is to have a baseline performance information on hints.
There are some tests and utils functions writtenn which should make the actual benchmark writing easier

@greged93 greged93 force-pushed the feat/uint512-div-mod branch from 20afb5b to 9f47b89 Compare November 19, 2023 13:39
Copy link
Contributor

@rodrigo-pino rodrigo-pino left a comment

Choose a reason for hiding this comment

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

Amazing PR! Thank you @greged93 !!!! 💯

@rodrigo-pino rodrigo-pino merged commit 1b0d6d6 into NethermindEth:main Nov 20, 2023
4 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.

Feat: Implement Uint512DivModByUint256 Div Mod Hint
2 participants