Function halo2_gadgets::utilities::bitrange_subset
source · [−]pub fn bitrange_subset<F: PrimeFieldBits>(
field_elem: &F,
bitrange: Range<usize>
) -> F
Expand description
Takes a specified subsequence of the little-endian bit representation of a field element. The bits are numbered from 0 for the LSB.