Function _pext_u32

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

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

Intel's documentation