🔬This is a nightly-only experimental API. (
stdsimd
#48556)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
- _blcfill_u32⚠
tbm
Clears all bits below the least significant zero bit ofx
. - _blcfill_u64⚠
tbm
Clears all bits below the least significant zero bit ofx
. - _blci_u32⚠
tbm
Sets all bits ofx
to 1 except for the least significant zero bit. - _blci_u64⚠
tbm
Sets all bits ofx
to 1 except for the least significant zero bit. - _blcic_u32⚠
tbm
Sets the least significant zero bit ofx
and clears all other bits. - _blcic_u64⚠
tbm
Sets the least significant zero bit ofx
and clears all other bits. - _blcmsk_u32⚠
tbm
Sets the least significant zero bit ofx
and clears all bits above that bit. - _blcmsk_u64⚠
tbm
Sets the least significant zero bit ofx
and clears all bits above that bit. - _blcs_u32⚠
tbm
Sets the least significant zero bit ofx
. - _blcs_u64⚠
tbm
Sets the least significant zero bit ofx
. - _blsfill_u32⚠
tbm
Sets all bits ofx
below the least significant one. - _blsfill_u64⚠
tbm
Sets all bits ofx
below the least significant one. - _blsic_u32⚠
tbm
Clears least significant bit and sets all other bits. - _blsic_u64⚠
tbm
Clears least significant bit and sets all other bits. - _t1mskc_u32⚠
tbm
Clears all bits below the least significant zero ofx
and sets all other bits. - _t1mskc_u64⚠
tbm
Clears all bits below the least significant zero ofx
and sets all other bits. - _tzmsk_u32⚠
tbm
Sets all bits below the least significant one ofx
and clears all other bits. - _tzmsk_u64⚠
tbm
Sets all bits below the least significant one ofx
and clears all other bits.