bitShiftInt

fun bitShiftInt(value: Int, leftShift: Int): Int

Note: This is a logical shift without Java's implicit modulus on the shift amount.

Return

The shifted integer, modulus 2^32 then cast to int.

Parameters

value

The value to shift.

leftShift

The amount to shift left. If negative, shift right by the corresponding positive amount.