Function bls()

← Back to Module core



Module core → bls()

Description

Perform left shift operation for the every bit of the given number x by y places. The given number y decides the number of places to shift.

bls(x, y, bit_width = 32, unsigned = false)


Parameters


Return Value


Usage Example

a = bls(5, 1, 8, true)   ' a = 10 -> Where 00000101 << 1 is 00001010 (10 in unsigned 8-bit)


Availability

This function is available on Dinfio version 3.1.06 or later