706 B
706 B
title | description | menu | weight | related | flux/v0.x/tags | ||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
bitwise.ulshift() function | `bitwise.ulshift()` shifts bits in `a` left by `b` bits. Both `a` and `b` are [unsigned integers](/flux/v0.x/data-types/basic/uint/). |
|
401 |
|
|
bitwise.ulshift()
shifts bits in a
left by b
bits.
Both a
and b
are unsigned integers.
import "experimental/bitwise"
bitwise.ulshift(a: uint(v: 12), b: uint(v: 21))
// Returns 25165824 (uint)
Parameters
a
Left operand.
b
Number of bits to shift.