Bit manipulation instructions: Difference between revisions

Content deleted Content added
No edit summary
Line 24:
* The x86 instruction core set contains:
** {{code|BSR}} Bit Scan Reverse - Returns bit index of highest set bit in input, effectively backwards count leading zeros, not defined for 0.
** {{code|BSF}} Bit Scan Forward - Returns bit index of lowest set bit in input, effectively backwards count trailing zeros, but not defined for 0.
* [[SSE4]] and the [[X86 Bit manipulation instruction set|BMI]] instruction set extensions contains instructions for:
** Count leading zeros - {{code|lzcnt}}