_bextr2_u64
Classification
Other, Bit Manipulation, CPUID Test: BMI1
Header File
Instruction
BEXTR r64, r64, r64
Synopsis
_bextr2_u64(unsigned __int64 a, unsigned __int64 control);
Description
Extract contiguous bits from unsigned 64-bit integer "a", and store the result in "dst". Extract the number of bits specified by bits 15:8 of "control", starting at the bit specified by bits 0:7 of "control"..
Operation
start := control[7:0]
len := control[15:8]
tmp[511:0] := a
dst[63:0] := ZeroExtend64(tmp[(start[7:0] + len[7:0] - 1):start[7:0]])