Function _pext_u64

#[target_feature(enable = "bmi2")]
pub fn _pext_u64(a: u64, mask: u64) -> u64

Gathers the bits of x specified by the mask into the contiguous low order bit positions of the result.

Intel's documentation