Module core::core_arch::x86::bmi2

source ·
🔬This is a nightly-only experimental API. (stdsimd #48556)
Available on x86 or x86-64 only.
Expand description

Bit Manipulation Instruction (BMI) Set 2.0.

The reference is Intel 64 and IA-32 Architectures Software Developer’s Manual Volume 2: Instruction Set Reference, A-Z.

Wikipedia provides a quick overview of the instructions available.

Functions

  • x86_bmi2_bzhi_32 🔒 Experimental
  • x86_bmi2_pdep_32 🔒 Experimental
  • x86_bmi2_pext_32 🔒 Experimental
  • _bzhi_u32bmi2
    Zeroes higher bits of a >= index.
  • _mulx_u32bmi2
    Unsigned multiply without affecting flags.
  • _pdep_u32bmi2
    Scatter contiguous low order bits of a to the result at the positions specified by the mask.
  • _pext_u32bmi2
    Gathers the bits of x specified by the mask into the contiguous low order bit positions of the result.