Function that performs a logical shift to the left of the specified number of bits.
Syntax |
i32 shl (i32 value, i32 nBit) |
---|---|
value |
Variable to perform the shift on |
nBit |
Number of bits to be shifted |
result |
Returns the result of the shift |
Validity |
Rule, Task |
Note |
In the left shift the heavier outgoing bit is lost, in the lighter bit 0 always enters. It behaves similarly to r_shl() |
Example of use:
|