forked from privacy-ethereum/zkevm-specs
-
Notifications
You must be signed in to change notification settings - Fork 77
Spec for opcode SHL
#43
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
Closed
Closed
Changes from 16 commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
9b1d145
Add test case for `SHL`.
silathdiir 35f66e0
Implement opcode `SHL`.
silathdiir 1939133
Fix to validate `a64s_hi[idx] < p_hi`, and add Markdown doc for `SHL`.
silathdiir 897ad08
Move some code from `SHR` to make it work with `master` branch.
silathdiir af1c403
Merge remote-tracking branch 'origin/master' into feat/opcode-shl
silathdiir 5f01718
Replace key `code_source` with `code_hash` in test code.
silathdiir 929610d
Merge remote-tracking branch 'origin/master' into feat/opcode-shl
silathdiir 8633f59
Fix to use `mul_add_words` for `SHL`.
silathdiir ad0ed96
Merge previous `SHR` into `SHL`.
silathdiir 1469896
Merge both `SHL` and `SHR` into `mul_div_mod_shl_shr`.
silathdiir b45da81
Delete separate Markdown doc of `SHL` and `SHR`.
silathdiir 3ad5b22
Fix constraints.
silathdiir 9b95227
Update Markdown doc for `MUL`, `DIV`, `MOD`, `SHL` and `SHR`.
silathdiir 450db8c
Merge remote-tracking branch 'origin/master' into feat/opcode-shl
silathdiir 4598e5f
Fix the wrong argument sequence of `SHL` and `SHR`.
silathdiir 7a7f5b9
Add function `is_op_mul`, `is_op_div`, `is_op_mod`, `is_op_shl` and
silathdiir 76f92ab
Delete `ExecutionState::SHL_SHR` and update Markdown doc according to
silathdiir 63b8b15
`MULMOD` opcode (#204)
davidnevadoc 358f20e
Update spec code according to circuit, and add `Pow2` lookup for shift
silathdiir c57b4d0
Fix `Pow2` lookup table and update to use `shf0` for lookup.
silathdiir e39f590
Merge remote-tracking branch 'upstream/master' into feat/opcode-shl
silathdiir File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.