-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
implement calldata parsing and testing for BytesParsing
- Loading branch information
1 parent
3f1cbfa
commit e24e304
Showing
5 changed files
with
1,065 additions
and
271 deletions.
There are no files selected for viewing
This file contains 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 contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
// SPDX-License-Identifier: Apache 2 | ||
pragma solidity ^0.8.4; | ||
|
||
uint256 constant FREE_MEMORY_PTR = 0x40; | ||
uint256 constant WORD_SIZE = 32; | ||
//we can't define _WORD_SIZE_MINUS_ONE via _WORD_SIZE - 1 because of solc restrictions | ||
// what constants can be used in inline assembly | ||
uint256 constant WORD_SIZE_MINUS_ONE = 31; //=0x1f=0b00011111 | ||
|
||
//see section "prefer `< MAX + 1` over `<= MAX` for const comparison" in docs/Optimization.md | ||
uint256 constant WORD_SIZE_PLUS_ONE = 33; |
Oops, something went wrong.