_bzhi_u32
Classification
Other, Bit Manipulation, CPUID Test: BMI2
Header File
Instruction
BZHI r32, r32, r32
Synopsis
_bzhi_u32(unsigned int a, unsigned int index);
Description
Copy all bits from unsigned 32-bit integer "a" to "dst", and reset (set to 0) the high bits in "dst" starting at "index".
Operation
n := index[7:0]
dst := a
IF (n < 32)
dst[31:n] := 0
FI