i64.extend16_s
Pops an i64
value off the stack, only looks at the first 16 bits, converts it into an i64
value, and then
pushes it back on to the stack.
This only looks at the first 16 bits of the 64 bit integer.
The other bits are lost.
The 16th bit is used as a sign flag, therefore it is treated as a signed 16 bit number.
Stack In
i64 |
The value to be converted. |
Stack Out
i64 |
The i64 version of the first 16 bits of the i64 value. |
Examples
i64.const 1
i64.extend16_s
i64.const 0xAB124129
i64.extend16_s
i64.const 0xAB12F129
i64.extend16_s