U
    #ºcñ  ã                   @   s8   d dl mZmZmZ d dlmZ d dlmZ dd„ ZdS )é    )Ú__cpu_features__Ú__cpu_baseline__Ú__cpu_dispatch__)Ú_umath_tests)Úassert_equalc                  C   sÞ   d} d}g }t | ƒD ]:}|tkr"q|tkst| s4q|s@d| }| d| ¡ qt ¡ }t|d d| ƒ t|d d| ƒ |r¦t|d d| ƒ t|d d| ƒ nt|d d	ƒ t|d d	ƒ | d¡ t|d
 |ƒ dS )z5
    Testing the utilities of the CPU dispatcher
    )	ZSSE2ZSSE41ZAVX2ZVSXZVSX2ZVSX3ZNEONZASIMDZASIMDHPÚ Ú_Zfunc_ÚfuncÚvarZfunc_xbZvar_xbZnobaseÚallN)Úreversedr   r   r   Úappendr   Ztest_dispatchr   )ÚtargetsZhighest_sfxZall_sfxZfeatureÚtest© r   úH/tmp/pip-unpacked-wheel-b2rbor69/numpy/core/tests/test_cpu_dispatcher.pyÚtest_dispatcher   s*    
r   N)	Znumpy.core._multiarray_umathr   r   r   Z
numpy.corer   Znumpy.testingr   r   r   r   r   r   Ú<module>   s   