Skip to content

Latest commit

 

History

History
14 lines (14 loc) · 671 Bytes

Incorrect shift in assembly.md

File metadata and controls

14 lines (14 loc) · 671 Bytes

Shift operators (shl(x, y), shr(x, y), sar(x, y)) in Solidity assembly apply the shift operation of x bits on y and not the other way around, which may be confusing. Check if the values in a shift operation are reversed. (see here)


Slide Screenshot

062.jpg


Slide Text

  • Shift Operators
  • shl(x,y), shr(x,y), sar(x,y)

References


Tags