right most set bit Algorithm

In computing, bit numbering (or sometimes bit endianness) is the convention used to identify the bit positions in a binary number or a container of such a value. The bit number begins with zero and is incremented by one for each subsequent bit position.

right most set bit source code, pseudocode and analysis