Usage
shift(a, n)
shift!(a, n)
Signature
shift: (%, MachineInteger) %
Parameter | Type | Description |
---|---|---|
a | % | an integer |
n | MachineInteger | a machine integer |
Returns
Returnsshifted left
times if
, shifted right
times if
.
Remarks
shift! does not make a copy of, which is therefore modified after the call. It is unsafe to use the variable
after the call, unless it has been assigned to the result of the call, as in x := shift!(x, n).