Syntax: CLZ {<cond>} <destination>, <operand1>
Operation: return the number of binary zeros in <operand1>
Flags: Unaffected
This operation counts from bit 31 downwards until it encounters a '1', placing the answer in <destination>.
It is only available from ARM architecture 5 onwards.
MOV R0, #%1111
CLZ R1, R0 ; Puts 28 into R1
If the source or destination is R15, the result is unpredictable.
|
|
|