Bit Manipulation Instruction Sets
Neue Instruktionen
ABM
| Instruktion |
Beschreibung |
POPCNT |
Anzahl gesetzter Bits |
LZCNT |
Anzahl führender Nullen |
BMI1
| Instruktion |
Beschreibung |
Ausdruck in C |
ANDN |
AND NOT |
~x & y |
BEXTR |
Bitfeld extrahieren |
(src >> start) & ((1 << len)-1) |
BLSI |
Niedrigstes gesetztes Bit isolieren |
x & -x |
BLSMSK |
Alle Bits bis zum niedrigsten gesetzten Bit setzen, alle höheren Bits löschen |
x ^ (x - 1) |
BLSR |
Niedrigstes gesetztes Bit löschen |
x & (x - 1) |
TZCNT |
Anzahl schließender Nullen |
— |
TBM
| Instruktion |
Beschreibung (englisch) |
Ausdruck in C |
BEXTR |
Bitfeld-Extrakt (unmittelbarer Kontroll-Wert) |
(src >> start) & ((1 << len)-1) |
BLCFILL |
Fill from lowest clear bit |
x & (x + 1) |
BLCI |
Isolate lowest clear bit |
x | ~(x + 1) |
BLCIC |
Isolate lowest clear bit and complement |
~x & (x + 1) |
BLCMASK |
Mask from lowest clear bit |
x ^ (x + 1) |
BLCS |
Set lowest clear bit |
x | (x + 1) |
BLSFILL |
Fill from lowest set bit |
x | (x - 1) |
BLSIC |
Isolate lowest set bit and complement |
~x | (x - 1) |
T1MSKC |
Inverse mask from trailing ones |
~x | (x + 1) |
TZMSK |
Mask from trailing zeros |
~x & (x - 1) |