core::arch::x86_64

# Function _bextri_u64

1.82.0 · Source

    pub unsafe fn _bextri_u64(a: u64, const CONTROL: u64) -> u64

Available on x86-64 and target feature `tbm` only.
Expand description

Extracts bits of `a` specified by `control` into the least significant bits of the result.

Bits `[7,0]` of `control` specify the index to the first bit in the range to be extracted, and bits `[15,8]` specify the length of the range. For any bit position in the specified range that lie beyond the MSB of the source operand, zeroes will be written. If the range is empty, the result is zero.