nn::math::Rightmost0 Function

Syntax

int Rightmost0(
     int x
);

Arguments

Name Description
in x Bit array.

Return Values

Returns a bit array having only a single bit set to 0, corresponding to the position of the rightmost bit set to 1 in x.

Description

Gets the rightmost bit (closest to the LSB) that is set to 0.

Revision History

2010/01/07
Initial version.

CONFIDENTIAL