(number, bits)
return min(bits, (~number & (number-1)).bit_length())
Count the number of zero bits on the right hand side.

    Args:
        number: an integer.
        bits: maximum number of bits to count.

    Returns:
        The number of zero bits on the right hand side of the number.
Count the number of zero bits on the right hand side.
Count the number of zero bits on the right hand side .
def _count_righthand_zero_bits(number, bits):
    """Count the number of zero bits on the right hand side.

    Args:
        number: an integer.
        bits: maximum number of bits to count.

    Returns:
        The number of zero bits on the right hand side of the number.

    """
    if number == 0:
        return bits
    return min(bits, (~number & (number-1)).bit_length())
def _count_righthand_zero_bits ( number , bits ) : if number == 0 : return bits return min ( bits , ( ~ number & ( number - 1 ) ) . bit_length ( ) )