[pypy-commit] pypy default: someone forgot those
fijal
noreply at buildbot.pypy.org
Wed Apr 16 14:49:22 CEST 2014
Author: Maciej Fijalkowski <fijall at gmail.com>
Branch:
Changeset: r70653:6c60fdb521ad
Date: 2014-04-16 14:48 +0200
http://bitbucket.org/pypy/pypy/changeset/6c60fdb521ad/
Log: someone forgot those
diff --git a/pypy/module/micronumpy/iterators.py b/pypy/module/micronumpy/iterators.py
--- a/pypy/module/micronumpy/iterators.py
+++ b/pypy/module/micronumpy/iterators.py
@@ -97,6 +97,7 @@
self.indices = [0] * len(self.shape_m1)
self.offset = self.array.start
+ @jit.unroll_safe
def next(self):
self.index += 1
for i in xrange(self.ndim_m1, -1, -1):
@@ -108,6 +109,7 @@
self.indices[i] = 0
self.offset -= self.backstrides[i]
+ @jit.unroll_safe
def next_skip_x(self, step):
assert step >= 0
if step == 0:
More information about the pypy-commit
mailing list