Example #1
0
File: basic.py Project: mzsk/jitpy
def check_jitpy(f):
    jit_f = jittify([int, int, int], int)(f)
    for i in xrange(NUMBER):
        jit_f(10, i, i)
Example #2
0
def check_jitpy(f, prepare):
    jit_f = jittify(['array', float], float)(f)
    a = prepare()
    for i in xrange(NUMBER):
        jit_f(a, 3.5)
Example #3
0
File: array.py Project: mzsk/jitpy
def check_jitpy(f, prepare):
    jit_f = jittify(['array', float], float)(f)
    a = prepare()
    for i in xrange(NUMBER):
        jit_f(a, 3.5)
Example #4
0
def check_jitpy(f):
    jit_f = jittify([int, int, int], int)(f)
    for i in xrange(NUMBER):
        jit_f(10, i, i)