arithmetic shift bits
Description
i3 ishift(i1, i2)
ishift(i1, i2) produces the result of shifting the bits in i1 by i2 positions. Positive values of i2 shift to the left with zero fill; negative values shift to the right with sign extension. Vacated bit positions are zero-filled.
Parameters
- i1
- a 32 bit integer
- i2
- an integer
- returns
- the result of a Arithmetic SHIFT operation
Errors
101 |
i1 or i2 is not an integer |
See Also
- iand — compute bitwise AND
- icom — compute bitwise complement
- ior — compute bitwise inclusive OR
- ixor — compute bitwise exclusive OR