Module tbm

Source
Available on 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_u64tbm
Extracts bits of a specified by control into the least significant bits of the result.
_blcfill_u64tbm
Clears all bits below the least significant zero bit of x.
_blci_u64tbm
Sets all bits of x to 1 except for the least significant zero bit.
_blcic_u64tbm
Sets the least significant zero bit of x and clears all other bits.
_blcmsk_u64tbm
Sets the least significant zero bit of x and clears all bits above that bit.
_blcs_u64tbm
Sets the least significant zero bit of x.
_blsfill_u64tbm
Sets all bits of x below the least significant one.
_blsic_u64tbm
Clears least significant bit and sets all other bits.
_t1mskc_u64tbm
Clears all bits below the least significant zero of x and sets all other bits.
_tzmsk_u64tbm
Sets all bits below the least significant one of x and clears all other bits.
bextri_u64 🔒