_pext_u64
Classification
Other, Bit Manipulation, CPUID Test: BMI2
Header File
Instruction
PEXT r64, r64, r64
Synopsis
_pext_u64(unsigned __int64 a, unsigned __int64 mask);
Description
Extract bits from unsigned 64-bit integer "a" at the corresponding bit locations specified by "mask" to contiguous low bits in "dst"; the remaining upper bits in "dst" are set to zero.
Operation
tmp := a
dst := 0
m := 0
k := 0
DO WHILE m < 64
IF mask[m] == 1
dst[k] := tmp[m]
k := k + 1
FI
m := m + 1
OD