Author: Alex Gaynor <alex.gay...@gmail.com> Branch: Changeset: r50907:653d45fce4df Date: 2011-12-27 10:15 -0600 http://bitbucket.org/pypy/pypy/changeset/653d45fce4df/
Log: this can be unrolled sometimes diff --git a/pypy/module/micronumpy/strides.py b/pypy/module/micronumpy/strides.py --- a/pypy/module/micronumpy/strides.py +++ b/pypy/module/micronumpy/strides.py @@ -1,4 +1,9 @@ +from pypy.rlib import jit + +@jit.look_inside_iff(lambda shape, start, strides, backstrides, chunks: + jit.isconstant(len(chunks)) +) def calculate_slice_strides(shape, start, strides, backstrides, chunks): rstrides = [] rbackstrides = [] _______________________________________________ pypy-commit mailing list pypy-commit@python.org http://mail.python.org/mailman/listinfo/pypy-commit