29.1.4 __builtin_clz Built-in Function

Description

Count leading (high-order) zero bits in x, considered to be a 32-bit word.

Prototype

unsigned int __builtin_clz(x);

Argument

x : 32-bit word to analyse

Return Value

unsigned int : number of leading zero bits

Assembler Operator/ Machine Instruction

clz d, s

Error Messages

None.