Author: Stian Andreassen
Branch: improve-rbigint
Changeset: r56394:34a5cc2af0fe
Date: 2012-07-23 00:47 +0200
http://bitbucket.org/pypy/pypy/changeset/34a5cc2af0fe/
Log: Specialize 0**N, fix test_longobject.py
diff --git a/pypy/rlib/rbigint.py b/pypy/rlib/rbigint.py
--- a/pypy/rlib/rbigint.py
+++ b/pypy/rlib/rbigint.py
@@ -553,6 +553,9 @@
@jit.elidable
def pow(a, b, c=None):
+ if a.sign == 0:
+ return NULLRBIGINT
+
negativeOutput = False # if x<0 return negative output
# 5-ary values. If the exponent is large enough, table is
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit