10.107 __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 unsignedint.

Return value

The __clz intrinsic returns the number of leading zeros in val.

Related reference
10.154 GNU built-in functions
Related information
CLZ
Non-Confidential PDF file icon PDF version ARM DUI0472J
Copyright © 2010-2013 ARM. All rights reserved.