Function that performs a logical shift to the left of one bit, in a specified window, of a u32 array, considered in fact as an array of bits.
Syntax |
i32 shift_left (u32 array, i32 idStart, i32 nBit, i32 stsBit) |
---|---|
array |
Reference array. Note: Even if of only one element it must be declared as a variable. |
idStart |
Index of the start bit of the window. The number must be between 0 and (arrayLength*32 - 1). WARNING: The user is responsible for checking the possible overflow. |
nBit |
Number of bits of window size |
stsBit |
Boolean value of the incoming bit |
Result |
Returns the value (0 or 1) of the outgoing bit (the highest) from the window in which the shift is performed |
Validity |
Rule, Task |
Note |
Example of use:
|