Author: Maciej Fijalkowski <[email protected]>
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:
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit