🔬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
- _bzhi_u32⚠
bmi2Zeroes higher bits ofa>=index. - _mulx_u32⚠
bmi2Unsigned multiply without affecting flags. - _pdep_u32⚠
bmi2Scatter contiguous low order bits ofato the result at the positions specified by themask. - _pext_u32⚠
bmi2Gathers the bits ofxspecified by themaskinto the contiguous low order bit positions of the result.