
    xKgH                         d Z ddlZddlmZmZ ddlmZmZ dZdZ	dZ
 ee	dd	      d
        Z ee	d      d        Z ee
dd	      d        Z ed      d        Z ee	dd	      d        Z G d de      Zd Zy)zz
This file will be copied to a temporary directory in order to
exercise caching compiled C callbacks.

See test_cfunc.py.
    N)cfuncjit)TestCasecaptured_stderr   zfloat64(float64, float64)zfloat64(int64, int64)T)cachenopythonc                     | |z   t         z   S NZxys     d/home/alanp/www/video.onchill/myenv/lib/python3.12/site-packages/numba/tests/cfunc_cache_usecases.pyadd_usecaser          q519    )r	   c                     | |z   t         z   S r   r   r   s     r   add_nocache_usecaser      r   r   c                     | |z  S r    )abs     r   div_usecaser      s    q5Lr   c                     | |z   t         z   S r   r   r   s     r   innerr   "   r   r   c                     t        | |       S r   )r   r   s     r   outerr   &   s    !Q<r   c                       e Zd ZdZd Zy)_TestModulez
    Tests for functionality of this module's cfuncs.
    Note this does not define any "test_*" method, instead check_module()
    should be called by hand.
    c                    |j                   }| j                  |j                  dd      d       |j                  }| j                  |j                  dd      d       |j                  }| j                  |j                  dd      d       |j
                  }t               5 }| j                  |j                  dd      d       d d d        | j                  j                         d	       t               5 }|j                  dd
       d d d        |j                         }| j                  d|       y # 1 sw Y   qxY w# 1 sw Y   8xY w)Ng       @g      @g      @g      @g      @      g      @ r   ZeroDivisionError)
r   assertPreciseEqualctypesr   r   r   r   assertEqualgetvalueassertIn)selfmodferrs       r   check_modulez_TestModule.check_module2   s    OOc 2C8##c 2C8IIc 2C8OO###AHHQNC8 ,#HHQN lln)3/  s   !#D46E 4D= E	N)__name__
__module____qualname____doc__r0   r   r   r   r!   r!   +   s    0r   r!   c                  d    t         j                  t           } t               j	                  |        y r   )sysmodulesr1   r!   r0   )r-   s    r   	self_testr8   D   s     
++h
CMs#r   )r4   r6   numbar   r   numba.tests.supportr   r   r   add_sigdiv_sigr   r   r   r   r   r!   r8   r   r   r   <module>r=      s      9 
%
! wdT* + w  wdT* + d  wdT* +0( 02$r   