fork | group |
---|---|
Constantinople |
Comparison & Bitwise Logic Operations |
Index 1 is top of the stack. See PUSH.
Shift the bits towards the least significant one. The bits moved before the first one are discarded, the new bits are set to 0 if the previous most significant bit was 0, otherwise the new bits are set to 1.
shift
: number of bits to shift to the right.value
: integer to shift.
value >> shift
: the shifted value.
* | Input | Output |
---|---|---|
1 |
1 |
1 |
2 |
2 |
* | Input | Output |
---|---|---|
1 |
4 |
0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF |
2 |
0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF0 |
The state changes done by the current context are reverted in those cases:
- Not enough gas.
- Not enough values on the stack.