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§
- _bzhi_
u32 ⚠bmi2
- Zeroes higher bits of
a
>=index
. - _mulx_
u32 ⚠bmi2
- Unsigned multiply without affecting flags.
- _pdep_
u32 ⚠bmi2
- Scatter contiguous low order bits of
a
to the result at the positions specified by themask
. - _pext_
u32 ⚠bmi2
- Gathers the bits of
x
specified by themask
into the contiguous low order bit positions of the result. - x86_
bmi2_ 🔒 ⚠bzhi_ 32 - x86_
bmi2_ 🔒 ⚠pdep_ 32 - x86_
bmi2_ 🔒 ⚠pext_ 32