Skip to content

Commit

Permalink
fix: Replace shr with sar for integer types
Browse files Browse the repository at this point in the history
This commit replaces `shr` with `sar` in the assembly code of `TickMath.sol`, specifically in commands dealing with integer types. Additionally, it includes an update to the interaction with the variable `tick256` - dropping the `signextend` function and just referencing `tick`. The changes also affect gas snapshots, though it is not the primary purpose of these modifications.
  • Loading branch information
shuhuiluo authored and gnarlycow committed May 1, 2024
1 parent 8c36e2f commit a23fa2b
Show file tree
Hide file tree
Showing 4 changed files with 144 additions and 140 deletions.
Loading

0 comments on commit a23fa2b

Please sign in to comment.