_bextr2_u32
Classification
Other, Bit Manipulation, CPUID Test: BMI1
Header File
immintrin.h
Instruction
BEXTR r32, r32, r32
Synopsis
 _bextr2_u32(unsigned int a, unsigned int control);
Description
Extract contiguous bits from unsigned 32-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[31:0] := ZeroExtend32(tmp[(start[7:0] + len[7:0] - 1):start[7:0]])