def rol(value, count, bits=32):
    """
    Bitwise rotate left
    :param value: Value to rotate
    :param count: Number of bits to rotate
    :param bits: Bit-length of rotated value (default: 32-bit, DWORD)

    .. seealso::

       :py:meth:`malduck.ints.IntType.rol`

    """
    count = bits - 1 & count
    value = value << count | 2 ** count - 1 & value >> bits - count
    return value % 2 ** bits
