Author: Maciej Fijalkowski <fij...@gmail.com> Branch: Changeset: r49789:c38223706f79 Date: 2011-11-25 14:22 +0200 http://bitbucket.org/pypy/pypy/changeset/c38223706f79/
Log: oops, those two are unroll_safe diff --git a/pypy/module/micronumpy/interp_numarray.py b/pypy/module/micronumpy/interp_numarray.py --- a/pypy/module/micronumpy/interp_numarray.py +++ b/pypy/module/micronumpy/interp_numarray.py @@ -615,6 +615,7 @@ concrete.to_str(space, 0, ret, ' ') return space.wrap(ret.build()) + @jit.unroll_safe def _index_of_single_item(self, space, w_idx): if space.isinstance_w(w_idx, space.w_int): idx = space.int_w(w_idx) @@ -643,6 +644,7 @@ item += v * self.strides[i] return item + @jit.unroll_safe def _single_item_result(self, space, w_idx): """ The result of getitem/setitem is a single item if w_idx is a list of scalars that match the size of shape _______________________________________________ pypy-commit mailing list pypy-commit@python.org http://mail.python.org/mailman/listinfo/pypy-commit