Function that performs an arithmetic shift to the left of the specified number of bits.
Syntax |
i32 r_shl (i32 value, i32 nBit) |
---|---|
value |
Unit on which to perform the shift |
nBit |
Number of bits |
result |
Returns the result of the shift |
Validity |
Rule, Task |
Note |
In the left shift the heaviest bit exiting to the left is lost. A 0 enters on the right |
Example usage:
Example usage:
Example usage:
|