o
    Ðùa%  ã                   @   s>   d gZ zejZW n ey   dd„ ZY nw 	 eZdd„ ZdS )ÚpopCountc                 C   s   t | ƒ d¡S )NÚ1)ÚbinÚcount©Úv© r   ú9/usr/lib/python3/dist-packages/fontTools/misc/intTools.pyÚ	bit_count   s   r	   c                 C   s    dd„ t t| ƒddd… ƒD ƒS )z†Return list of indices where bits are set, 0 being the index of the least significant bit.

    >>> bit_indices(0b101)
    [0, 2]
    c                 S   s   g | ]
\}}|d kr|‘qS )r   r   )Ú.0ÚiÚbr   r   r   Ú
<listcomp>   s    zbit_indices.<locals>.<listcomp>Néÿÿÿÿ)Ú	enumerater   r   r   r   r   Úbit_indices   s    r   N)Ú__all__Úintr	   ÚAttributeErrorr   r   r   r   r   r   Ú<module>   s    
þ