Module bmi2
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_u64
Zeroes higher bits of
a>=index. - _mulx_u64 Unsigned multiply without affecting flags.
-
_pdep_u64
Scatter contiguous low order bits of
ato the result at the positions specified by themask. -
_pext_u64
Gathers the bits of
xspecified by themaskinto the contiguous low order bit positions of the result. - x86_bmi2_bzhi_64
- x86_bmi2_pdep_64
- x86_bmi2_pext_64