def find_T_bit_to_right_of(self, bpos):
    '\n        Returns position of 1 (True) bit immediately to the right of\n        position bpos. Returns -1 if there is no such bit.\n\n        Parameters\n        ----------\n        bpos : int\n            bit position\n\n        Returns\n        -------\n        int\n\n        '
    if (bpos <= 0):
        return (- 1)
    right_T_bit = bpos
    mask = (1 << right_T_bit)
    found_it = False
    while True:
        right_T_bit -= 1
        mask >>= 1
        found_it = ((self.dec_rep & mask) == mask)
        if ((right_T_bit == 0) or found_it):
            break
    if found_it:
        return right_T_bit
    else:
        return (- 1)
Returns position of 1 (True) bit immediately to the right of
position bpos. Returns -1 if there is no such bit.

Parameters
----------
bpos : int
    bit position

Returns
-------
int
def find_T_bit_to_right_of(self, bpos):
    '\n        Returns position of 1 (True) bit immediately to the right of\n        position bpos. Returns -1 if there is no such bit.\n\n        Parameters\n        ----------\n        bpos : int\n            bit position\n\n        Returns\n        -------\n        int\n\n        '
    if (bpos <= 0):
        return (- 1)
    right_T_bit = bpos
    mask = (1 << right_T_bit)
    found_it = False
    while True:
        right_T_bit -= 1
        mask >>= 1
        found_it = ((self.dec_rep & mask) == mask)
        if ((right_T_bit == 0) or found_it):
            break
    if found_it:
        return right_T_bit
    else:
        return (- 1)