_bzhi_u64
Classification
Other, Bit Manipulation, CPUID Test: BMI2
Header File
Instruction
BZHI r64, r64, r64
Synopsis
_bzhi_u64(unsigned __int64 a, unsigned int index);
Description
Copy all bits from unsigned 64-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 < 64)
dst[63:n] := 0
FI