File: //opt/alt/python311/lib/python3.11/site-packages/redis/__pycache__/crc.cpython-311.pyc
�
$�;f� � �( � d dl mZ dZddgZefd�ZdS )� )�crc_hqxi @ �key_slot�REDIS_CLUSTER_HASH_SLOTSc �� � | � d� � }|dk r5| � d|dz � � }|dk r||dz k r
| |dz |� } t | d� � |z S )z�Calculate key slot for a given key.
See Keys distribution model in https://redis.io/topics/cluster-spec
:param key - bytes
:param bucket - int
� {���� }� r )�findr )�key�bucket�start�ends �</opt/alt/python311/lib/python3.11/site-packages/redis/crc.pyr r
so � �
�H�H�T�N�N�E��r�z�z��h�h�t�U�Q�Y�'�'����8�8��u�q�y�(�(��e�a�i�#�o�&�C��3��?�?�V�#�#� N)�binasciir r �__all__r � r r �<module>r sM �� � � � � � � !� ��1�
2�� 2� $� $� $� $� $� $r