Skip to main content

var_sll_blocks

Function var_sll_blocks 

Source
pub fn var_sll_blocks(
    b: &CircuitBuilder,
    x: Wire,
    shift: Wire,
    shift_bits: usize,
    block_bits: usize,
) -> Wire
Expand description

Variable-amount logical left shift by blocks of 2^block_bits bits.

Returns x << (shift * 2^block_bits), where the low shift_bits bits of shift are the block count.

ยงPanics

Panics if shift_bits + block_bits > 6.