Available on x86-64 only.
Expand description
Bit Manipulation Instruction (BMI) Set 1.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§
- _andn_
u64 ⚠bmi1
- Bitwise logical
AND
of inverteda
withb
. - _bextr2_
u64 ⚠bmi1
- Extracts bits of
a
specified bycontrol
into the least significant bits of the result. - _bextr_
u64 ⚠bmi1
- Extracts bits in range [
start
,start
+length
) froma
into the least significant bits of the result. - _blsi_
u64 ⚠bmi1
- Extracts lowest set isolated bit.
- _blsmsk_
u64 ⚠bmi1
- Gets mask up to lowest set bit.
- _blsr_
u64 ⚠bmi1
- Resets the lowest set bit of
x
. - _mm_
tzcnt_ ⚠64 bmi1
- Counts the number of trailing least significant zero bits.
- _tzcnt_
u64 ⚠bmi1
- Counts the number of trailing least significant zero bits.
- x86_
bmi_ 🔒 ⚠bextr_ 64