#include <nitro/math.h>
u32 MATH_GetLeastSignificantBit( u32 x );
u32 MATH_LSB( u32 x );
x | Numeric value to perform calculation. |
Returns the lowest-order bit set to 1.
This function looks for the lowest bit that is set to 1 when x is expressed as a binary 32-bit value. 10(01010b) is 2(010b), and 0 is 0.
MATH_LSB
is another name for the MATH_GetLeastSignificantBit
function.
The highest-order bit set to 1 can be found with the MATH_GetMostSignificantBit
function.
MATH_GetMostSignificantBit MATH_ILog2
12/22/2005 Initial version.