9.103 __clz intrinsic

This intrinsic inserts a CLZ instruction or an equivalent code sequence into the instruction stream generated by the compiler. It enables you to count the number of leading zeros of a data value in your C or C++ code.

Syntax

unsigned char __clz(unsigned int val)
Where:
val
is an unsigned int.

Return value

The __clz intrinsic returns the number of leading zeros in val.
Related information
CLZ
Non-ConfidentialPDF file icon PDF versionARM DUI0375E
Copyright © 2007, 2008, 2011, 2012, 2014 ARM. All rights reserved.