Skip to content

Commit

Permalink
chore: fix Yul's shift instructions definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
madlabman authored and michprev committed Jun 11, 2024
1 parent 8ae03fe commit 9b9ffa7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions wake_printers/lsp_yul_definitions.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@
"or": "// bitwise OR\nor(x, y)",
"xor": "// bitwise XOR\nxor(x, y)",
"byte": "// retrieve the nth most significant byte of x\nbyte(n, x)",
"shl": "// x << y\nshl(x, y)",
"shr": "// x >> y\nshr(x, y)",
"sar": "// signed x >> y\nsar(x, y)",
"shl": "// y << x\nshl(x, y)",
"shr": "// y >> x\nshr(x, y)",
"sar": "// signed y >> x\nsar(x, y)",
"addmod": "// (x + y) % m, 0 if m == 0\naddmod(x, y, m)",
"mulmod": "// (x * y) % m, 0 if m == 0\nmulmod(x, y, m)",
"signextend": "// sign extend from (i * 8 + 7)th bit counting from least significant\nsignextend(i, x)",
Expand Down

0 comments on commit 9b9ffa7

Please sign in to comment.