i64.shr_u
Pops two
i64
values off the stack, shift the first value to the right by the second number of bits, and then
pushes the result back on to the stack. This looks at the value as an unsigned integer (positive values only).
The new bit on the left (the most significant bit) will always be a 0.
$result = $first >>> $second
Stack In
i64 |
The first value to be shifted right. |
i64 |
The second value to shift the bits by. |
Stack Out
i64 |
The result of shifting the first value right by the second value's number of bits. |
Examples
i64.const 43
i64.const 2
i64.shr_u
i64.const 0xFEDCBA9876543210
i64.const 4
i64.shr_u