_pdep_u64
Classification
Other, Bit Manipulation, CPUID Test: BMI2
Header File
Instruction
PDEP r64, r64, r64
Synopsis
_pdep_u64(unsigned __int64 a, unsigned __int64 mask);
Description
Deposit contiguous low bits from unsigned 64-bit integer "a" to "dst" at the corresponding bit locations specified by "mask"; all other 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[m] := tmp[k]
k := k + 1
FI
m := m + 1
OD