#NEWLINE# def _jit( sigs , locals , target , cache , targetoptions , **dispatcher_args ) : #NEWLINE# #INDENT# dispatcher = registry . dispatcher_registry [ target ] #NEWLINE# def wrapper( func ) : #NEWLINE# #INDENT# if ( config . ENABLE_CUDASIM and ( target == 'cuda' ) ) : #NEWLINE# #INDENT# from . import cuda #NEWLINE# return cuda . jit ( func ) #NEWLINE# #UNINDENT# if ( config . DISABLE_JIT and ( not ( target == 'npyufunc' ) ) ) : #NEWLINE# #INDENT# return _DisableJitWrapper ( func ) #NEWLINE# #UNINDENT# disp = dispatcher ( py_func = func , locals = locals , targetoptions = targetoptions , ** dispatcher_args ) #NEWLINE# if cache : #NEWLINE# #INDENT# disp . enable_caching ( ) #NEWLINE# #UNINDENT# if ( sigs is not None ) : #NEWLINE# #INDENT# for sig in sigs : #NEWLINE# #INDENT# disp . compile ( sig ) #NEWLINE# #UNINDENT# disp . disable_compile ( ) #NEWLINE# #UNINDENT# return disp #NEWLINE# #UNINDENT# return target