Available on x86 or x86-64 only.
Expand description
Trailing Bit Manipulation (TBM) instruction set.
The reference is AMD64 Architecture Programmer’s Manual, Volume 3: General-Purpose and System Instructions.
Wikipedia provides a quick overview of the available instructions.
Functions§
- _bextri_
u32 tbm - Extracts bits of
aspecified bycontrolinto the least significant bits of the result. - _blcfill_
u32 tbm - Clears all bits below the least significant zero bit of
x. - _blci_
u32 tbm - Sets all bits of
xto 1 except for the least significant zero bit. - _blcic_
u32 tbm - Sets the least significant zero bit of
xand clears all other bits. - _blcmsk_
u32 tbm - Sets the least significant zero bit of
xand clears all bits above that bit. - _blcs_
u32 tbm - Sets the least significant zero bit of
x. - _blsfill_
u32 tbm - Sets all bits of
xbelow the least significant one. - _blsic_
u32 tbm - Clears least significant bit and sets all other bits.
- _t1mskc_
u32 tbm - Clears all bits below the least significant zero of
xand sets all other bits. - _tzmsk_
u32 tbm - Sets all bits below the least significant one of
xand clears all other bits. - bextri_
u32 🔒 ⚠