| |||
| Home > ARM and Thumb Instructions > General data processing instructions > CLZ | |||
Count Leading Zeros.
CLZ{cond}Rd,Rm
where:
condis an optional condition code (see Conditional execution).
Rdis the destination register. must
not be r15.Rd
Rmis the operand register. must
not be r15.Rm
The CLZ instruction counts the number of leading
zeros in the value in and
returns the result in Rm.
The result value is 32 if no bits are set in the source register,
and zero if bit 31 is set.Rd
This ARM instruction is available in ARMv5 and above.
This 32-bit Thumb instruction is available in ARMv6T2 and ARMv7.
There is no 16-bit Thumb version of this instruction.