bitwise-arithmetic-shift-left[procedure] bitwise-arithmetic-shift e1 e2
[procedure] bitwise-arithmetic-shift-left e1 e2
[procedure] bitwise-arithmetic-shift-right e1 e2
R6RS: Bitwise shift operations on 2's complement representation of
an exact integer e1. E2 specifies the amount of shift.
For bitwise-arithmetic-shift, positive e2 shifts left and
negative e2 shifts right. For bitwise-arithmetic-shift-left
and bitwise-arithmetic-shift-right, e2 must be a non-negative
exact integer.
See fxarithmetic-shift etc for fixnum-only ops.
See bitwise-and etc. for bitwise logical ops.
Other implementations have arithmetic-shift, ash.
numero rio
|