Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
1/5/2010
This ARM10 instruction counts the number of binary zero bits before the first binary one bit in a register value. The common _CountLeadingZeros, _CountLeadingZeros64intrinsic supports CLZ.
Syntax
unsigned cdecl _CountLeadingZeros(
long Arg1
);
Parameters
- Arg1
[in] The value for which the leading zero bits should be determined.
Return Values
Number of binary zero bits.
Remarks
To generate the CLZ instruction for the _CountLeadingZeros intrinsic, use the -QRarch5 or -QRarch5T flag.
If you are compiling on an ARM4 microprocessor, the compiler generates a call to a library name, or to some other sequence of ARM 4 code.
Requirements
| Architecture | ARM |
| Header | armintr.h |
| Routine | CLZ |
See Also
Reference
ARM10 Intrinsic Functions
/QRArch - Specify Target Architecture