
\K]c           @` s  d  d l  m Z m Z m Z d  d l Z d  d l Z d  d l m Z d  d l m	 Z	 d  d l
 m Z d d l m Z e   Z e j Z e	 j e	 j  Z e	 j e	 j  Z e	 j e	 j  Z e	 j e	 j  Z e	 j e	 j e	 j  Z e	 j e	 j e	 j  Z i e e f d 6e e f d	 6e e f d
 6e e f d 6e e f d 6e e f d 6e e f d 6e e f d 6e e f d 6e e f d 6e e f d 6e e f d 6e e f d 6e e f d 6e e f d 6e e f d 6e e f d 6e e f d 6e e f d 6e e f d 6e e f d 6e e f d 6e e f d 6e e f d 6e e f d  6e e f d! 6e e f d" 6e e f d# 6e e f d$ 6e e f d% 6e e f d& 6Z i d' d% 6Z d(   Z 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& g Z x e D] Z e j e  Z e d k rTe j! d) j" e   qn  y e# e e  Z$ Wn e% k
 r}qn Xx3 e D]+ Z& e e e&  Z' e e$ e& j(  e'  qWqWd S(*   i    (   t   print_functiont   absolute_importt   divisionN(   t   Registry(   t   types(   t   manglei   (   t   _declare_functiont   isnant   isinft   ceilt   floort   fabst   sqrtt   expt   expm1t   logt   log10t   log1pt   sint   cost   tant   asint   acost   atant   sinht   cosht   tanht   asinht   acosht   atanht   copysignt   atan2t   powt   fmodt   erft   erfct   gammat   lgammat   tgammac         ` s1   t  j |  |       f d   } |  | _ | S(   Nc         ` sO   t  |  |      j d t } | j | |  } |  j | |   j | j  S(   Nt   mangler(   R   t   argsR   t   callt   castt   return_type(   t   contextt   buildert   sigR(   t   fnt   res(   t   decl_sigt   sym(    s1   lib/python2.7/site-packages/numba/roc/mathimpl.pyt   coreL   s    	(   t   _lib_counterpartt   gett   __name__(   t   nameR1   R3   (    (   R1   R2   s1   lib/python2.7/site-packages/numba/roc/mathimpl.pyt   _mk_fn_declI   s    	s   HSA - failed to register '{0}'()   t
   __future__R    R   R   t   matht   warningst   numba.targets.imputilsR   t   numbaR   t   numba.itanium_manglerR   t   hsaimplR   t   registryt   lowert   int32t   float32t
   _unary_b_ft   float64t
   _unary_b_dt
   _unary_f_ft
   _unary_d_dt   _binary_f_fft   _binary_d_ddt   function_descriptorsR4   R8   t
   _supportedR7   R5   t   sigst   Nonet   warnt   formatt   getattrt   keyt   AttributeErrorR.   R/   R(   (    (    (    s1   lib/python2.7/site-packages/numba/roc/mathimpl.pyt   <module>   s   			
	