nn::math::Rightmost0 Function

Syntax

bit64 Rightmost0(
     bit64 x
);

Parameters

Name Description
in x Target bit string.

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