[pypy-commit] pypy default: always look inside the product - we kind of need it.

fijal noreply at buildbot.pypy.org
Fri Mar 30 20:21:28 CEST 2012


Author: Maciej Fijalkowski <fijall at gmail.com>
Branch: 
Changeset: r54102:8ea355410395
Date: 2012-03-30 19:56 +0200
http://bitbucket.org/pypy/pypy/changeset/8ea355410395/

Log:	always look inside the product - we kind of need it.

diff --git a/pypy/module/micronumpy/support.py b/pypy/module/micronumpy/support.py
--- a/pypy/module/micronumpy/support.py
+++ b/pypy/module/micronumpy/support.py
@@ -1,9 +1,9 @@
 from pypy.rlib import jit
 
 
- at jit.look_inside_iff(lambda s: jit.isconstant(len(s)))
+ at jit.unroll_safe
 def product(s):
     i = 1
     for x in s:
         i *= x
-    return i
\ No newline at end of file
+    return i


More information about the pypy-commit mailing list