shiftRight (Function)
Signature: shiftRight(a: t0, n: t0) -> t0
Description: Arithmetic right shift a >> n, total: a count outside 0..63 yields 0 for a >= 0 and -1 for a < 0. Performs no Arith operation.
Parameters
- a (
t0): The word to shift - n (
t0): The shift count
Returns: t0
Example
print(shiftRight(-16, 2)) // -4
print (shiftRight (-16, 2)) // -4