o
    i
                     @   s   d dl Z d dlZd dlZd dlmZ d dlmZ d dlmZm	Z	 dZ
dd Zdd	 Zd
d Zdd Zdd Zdd ZG dd deZedkrLe   dS dS )    N)jit)utils)TestCasetag    c                   C   s   t S )N)
max_uint64 r   r   h/var/www/html/eduruby.in/lip-sync/lip-sync-env/lib/python3.10/site-packages/numba/tests/test_intwidth.pyusecase_uint64_global      r
   c                   C      dS )Nr   r   r   r   r   r	   usecase_uint64_constant   r   r   c                   C   s
   t ddS )Nl    r   )maxr   r   r   r	   usecase_uint64_func   s   
r   c                   C   r   )N    r   r   r   r   r	   usecase_int64_pos   r   r   c                   C   r   )N         r   r   r   r   r	   usecase_int64_neg   r   r   c                   C   s   t ddtdd S )Nr   r   )r   minr   r   r   r	   usecase_int64_func   s   r   c                   @   sd   e Zd Zdd ZdddZdd Zddd	Zd
d ZdddZdd Z	dd Z
dddZdd ZdS )IntWidthTestc                 K   s&   t di ||}| | |  d S )Nr   )r   ZassertPreciseEqual)selfpyfunckwargsZcfuncr   r   r	   check_nullary_func#   s   zIntWidthTest.check_nullary_funcFc                 C      t }| j||d d S Nnopython)r
   r   r   r   r   r   r   r	   test_global_uint64'      zIntWidthTest.test_global_uint64c                 C      | j dd d S NTr   )r    r   r   r   r	   test_global_uint64_npm+      z#IntWidthTest.test_global_uint64_npmc                 C   r   r   )r   r   r   r   r   r	   test_constant_uint64.   r!   z!IntWidthTest.test_constant_uint64c                 C   r"   r#   )r'   r$   r   r   r	   test_constant_uint64_npm2   r&   z%IntWidthTest.test_constant_uint64_npmc                 C   r   r   )r   r   r   r   r   r	   "test_constant_uint64_function_call5   r!   z/IntWidthTest.test_constant_uint64_function_callc                 C   r"   r#   )r)   r$   r   r   r	   &test_constant_uint64_function_call_npm9   r&   z3IntWidthTest.test_constant_uint64_function_call_npmc                 C   s
  t j}| |dd | |dd | |dd | |dd | |dd | |dd | |d	d
 | |dd | |dd
 | |dd | |dd | |dd | |dd | |dd | |dd | |dd d S )N      i      i   i   	   i ii   i  i   l            l    r   @   l            A   )r   
bit_lengthassertEqual)r   fr   r   r	   test_bit_length<   s"   zIntWidthTest.test_bit_lengthc                 C   s.   | j t|d | j t|d | j t|d d S r   )r   r   r   r   )r   r   r   r   r	   test_constant_int64O   s   z IntWidthTest.test_constant_int64c                 C   r"   r#   )r:   r$   r   r   r	   test_constant_int64_npmT   r&   z$IntWidthTest.test_constant_int64_npmN)F)__name__
__module____qualname__r   r    r%   r'   r(   r)   r*   r9   r:   r;   r   r   r   r	   r   !   s    



r   __main__)ZunittestmathsysZnumbar   Z
numba.corer   Znumba.tests.supportr   r   r   r
   r   r   r   r   r   r   r<   mainr   r   r   r	   <module>   s"    7