nn::math::Rightmost1 Function

Syntax

int Rightmost1(
     int x
);

Arguments

Name Description
in x Bit array.

Return Values

Returns a bit array having only a single bit set to 1, 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 1.

Revision History

2010/01/07
Initial version.

CONFIDENTIAL