Module tbm
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
Extracts bits of
aspecified bycontrolinto the least significant bits of the result. -
_blcfill_u32
Clears all bits below the least significant zero bit of
x. -
_blci_u32
Sets all bits of
xto 1 except for the least significant zero bit. -
_blcic_u32
Sets the least significant zero bit of
xand clears all other bits. -
_blcmsk_u32
Sets the least significant zero bit of
xand clears all bits above that bit. -
_blcs_u32
Sets the least significant zero bit of
x. -
_blsfill_u32
Sets all bits of
xbelow the least significant one. - _blsic_u32 Clears least significant bit and sets all other bits.
-
_t1mskc_u32
Clears all bits below the least significant zero of
xand sets all other bits. -
_tzmsk_u32
Sets all bits below the least significant one of
xand clears all other bits. - bextri_u32