bitShift

fun A_Number.bitShift(shiftFactor: A_Number, canDestroy: Boolean): A_Number

Shift this integer left by the specified number of bits. If the shift amount is negative, perform a right shift instead (of the negation of the specified amount). In the case that the receiver is negative, shift in zeroes on the right or ones on the left.

Return

The shifted Avail integer.

Parameters

shiftFactor

How much to shift left, or if negative, the negation of how much to shift right.

canDestroy

Whether either input can be destroyed or recycled if it's mutable.