[pypy-commit] pypy default: oops, those two are unroll_safe
fijal
noreply at buildbot.pypy.org
Fri Nov 25 13:23:23 CET 2011
Author: Maciej Fijalkowski <fijall at 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
More information about the pypy-commit
mailing list