nn::math::CntLz Function

Syntax

u32 CntLz(
     u32 x
);

Arguments

Name Description
in x Bit array.

Return Values

Returns the number of consecutive bits set to 0, starting from the most significant bit (MSB).

Description

Counts the number of consecutive bits set to 0, starting from the most significant bit (MSB).

Revision History

2010/01/07
Initial version.

CONFIDENTIAL