CLZ

This ARM10 instruction counts the number of binary zero bits before the first binary one bit in a register value. The common _CountLeadingZeros intrinsic supports CLZ.

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 will generate a call to a library name, or to some other sequence of ARM 4 code.

Requirements

OS Versions: Windows CE .NET 4.0 and later.
Header: Armintr.h.

See Also

Common Intrinsic Functions | ARM10 Intrinsic Functions

 Last updated on Thursday, April 08, 2004

© 1992-2003 Microsoft Corporation. All rights reserved.