
­­­­­­­­­­­­­­­­­­
<!DOCTYPE html>
<html>
3
yb                 @   s   d dl Z d dlZd dlmZ d dlZddlmZ ddlmZ ej	gZ
ejrVe
jej ejjde
dd Zd	d
 Zdd ZdS )    N)	unhexlify   )	checksums)
bin_to_heximplementationc          .   C   sL   t jd}t|}d}x0tddD ]"}xd0D ]}||||  }q,W q"W d S )1Ni,  ixV4r         r                  	   
          !   "   #   $   %   &   '   (   )   ?   @   A   B   C   D   E   F   G   H   I                                      )-r   r   r   r	   r   r
   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r    r!   r"   r#   r$   r%   r&   r'   r(   r)   r*   r+   r,   r-   r.   r/   r0   r1   )osurandom
memoryviewrange)r   dataZmvZinitial_crcstartZlengthd r9   !/usr/lib64/python3.6/checksums.py
test_crc32   s    
   r;   c               C   s   d S )Nr9   r9   r9   r9   r:   
test_xxh64   s    r<   c              C   s"   t jd} | jd | jd d S )N{   s   tes   st)r   ZStreamingXXH64update)Zhasherr9   r9   r:   test_streaming_xxh64(   s    


r?   )r2   zlibZbinasciir   ZpytestZ
algorithmsr   Zhelpersr   Zcrc32_slice_by_8Zcrc32_implementationsZ
have_clmulappendZcrc32_clmulZmarkZparametrizer;   r<   r?   r9   r9   r9   r:   <module>   s   	