_mm_tzcnti_32
Classification
KNC, Bit Manipulation, CPUID Test: KNCNI
Header File
Instruction
TZCNTI r32, r32
Synopsis
_mm_tzcnti_32(int a, unsigned int x);
Description
Count the number of trailing zero bits in unsigned 32-bit integer "x" starting at bit "a", and return that count in "dst".
Operation
tmp := a
IF tmp < 0
tmp := 0
FI
dst := 0
IF tmp > 31
dst := 32
ELSE
DO WHILE ((tmp < 32) AND x[tmp] == 0)
tmp := tmp + 1
dst := dst + 1
OD
FI