shiftRight (Function)
Signature: shiftRight(a: int, n: int) -> int
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 (
int): The word to shift - n (
int): The shift count
Returns: int
Example
print(shiftRight(-16, 2)) // -4
print (shiftRight (-16, 2)) // -4