shiftRightLogical (Function)

Signature: shiftRightLogical(a: int, n: int) -> int

Description: Logical right shift of a's bits, total: a count outside 0..63 yields 0. Performs no Arith operation.

Parameters

  • a (int): The word to shift
  • n (int): The shift count

Returns: int

Example

print(shiftRightLogical(-16, 2))  // 4611686018427387900
print (shiftRightLogical (-16, 2))  // 4611686018427387900