cub::BFE

Defined in /home/runner/work/cccl/cccl/cub/cub/util_ptx.cuh

template<typename UnsignedBits>
unsigned int cub::BFE(UnsignedBits source, unsigned int bit_start, unsigned int num_bits)

Bitfield-extract.

Extracts num_bits from source starting at bit-offset bit_start. The input source may be an 8b, 16b, 32b, or 64b unsigned integer type.