BMI2
BMI2, short for Bit Manipulation Instruction Set 2, is an extension to the x86-64 instruction set architecture that provides additional instructions for manipulating bits and bitfields. The extension was designed to enable faster implementations of routines that work with binary data, such as bit-field extraction, packing and unpacking, multi-precision arithmetic, and certain cryptographic operations. It follows BMI1 as part of the broader effort to accelerate low-level data handling on modern processors.
Availability and hardware support: BMI2 was introduced by Intel with the Haswell generation and later adopted
Key instructions and capabilities: The extension includes instructions such as PEXT (parallel bits extract) and PDEP
Impact and usage: In practice, BMI2 enables compilers and libraries to implement high-performance bit-twiddling routines with
See also: x86 instruction set extensions, BMI1, CPUID feature flags, bit manipulation.