| fork | Frontier |
|---|---|
| group | Stop and Arithmetic Operations |
Index 1 is top of the stack. See PUSH.
b: size in byte - 1 of the integer to sign extend.x: integer value to sign extend.
y: integer result of the sign extend.
| * | Input | Output | * | * | Input | Output |
|---|---|---|---|---|---|---|
1 |
0 |
0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF |
* | 1 |
0 |
0x7F |
2 |
0xFF |
* | 2 |
0x7F |
The state changes done by the current context are reverted in those cases:
- Not enough gas.
- Not enough values on the stack.