[pypy-commit] pypy math-improvements: Cleanup functio

2017-10-19 Thread stian
Author: stian Branch: math-improvements Changeset: r92798:114b6da85abb Date: 2017-10-19 12:05 +0200 http://bitbucket.org/pypy/pypy/changeset/114b6da85abb/ Log:Cleanup functio diff --git a/rpython/rlib/rbigint.py b/rpython/rlib/rbigint.py --- a/rpython/rlib/rbigint.py +++ b/rpython/rlib/rbigin

[pypy-commit] pypy math-improvements: Fix build issues

2017-10-19 Thread stian
Author: stian Branch: math-improvements Changeset: r92799:4e50c695d26e Date: 2017-10-19 12:27 +0200 http://bitbucket.org/pypy/pypy/changeset/4e50c695d26e/ Log:Fix build issues diff --git a/pypy/objspace/std/longobject.py b/pypy/objspace/std/longobject.py --- a/pypy/objspace/std/longobject.py

[pypy-commit] pypy math-improvements: Add one more case to divmod, add tests to int_divmod, add int_pow tests.

2017-10-19 Thread stian
Author: stian Branch: math-improvements Changeset: r92797:6eedf6a4b154 Date: 2017-10-19 12:04 +0200 http://bitbucket.org/pypy/pypy/changeset/6eedf6a4b154/ Log:Add one more case to divmod, add tests to int_divmod, add int_pow tests. diff --git a/pypy/objspace/std/longobject.py b/pypy/o

[pypy-commit] pypy default: Code cleanup (to reduce diff with py3.5)

2017-10-19 Thread rlamy
Author: Ronan Lamy Branch: Changeset: r92800:058674d3d73a Date: 2017-10-19 17:50 +0100 http://bitbucket.org/pypy/pypy/changeset/058674d3d73a/ Log:Code cleanup (to reduce diff with py3.5) diff --git a/lib_pypy/_ctypes/array.py b/lib_pypy/_ctypes/array.py --- a/lib_pypy/_ctypes/array.py +++ b

[pypy-commit] pypy py3.5: Fix test_abstract in ctypes/test/test_frombuffer.py

2017-10-19 Thread rlamy
Author: Ronan Lamy Branch: py3.5 Changeset: r92801:05b154658972 Date: 2017-10-19 18:20 +0100 http://bitbucket.org/pypy/pypy/changeset/05b154658972/ Log:Fix test_abstract in ctypes/test/test_frombuffer.py diff --git a/lib_pypy/_ctypes/array.py b/lib_pypy/_ctypes/array.py --- a/lib_pypy/_ctype

[pypy-commit] pypy default: backport changes from py3.5

2017-10-19 Thread rlamy
Author: Ronan Lamy Branch: Changeset: r92802:e0fe31dff118 Date: 2017-10-19 18:38 +0100 http://bitbucket.org/pypy/pypy/changeset/e0fe31dff118/ Log:backport changes from py3.5 diff --git a/lib_pypy/_ctypes/array.py b/lib_pypy/_ctypes/array.py --- a/lib_pypy/_ctypes/array.py +++ b/lib_pypy/_ct

[pypy-commit] pypy math-improvements: Make use of int_sub in longobjects

2017-10-19 Thread stian
Author: stian Branch: math-improvements Changeset: r92803:62ba73fa6cac Date: 2017-10-19 22:47 +0200 http://bitbucket.org/pypy/pypy/changeset/62ba73fa6cac/ Log:Make use of int_sub in longobjects diff --git a/pypy/objspace/std/longobject.py b/pypy/objspace/std/longobject.py --- a/pypy/objspace/

[pypy-commit] pypy math-improvements: Ups, not suppose to include this code

2017-10-19 Thread stian
Author: stian Branch: math-improvements Changeset: r92806:6e8fd621566a Date: 2017-10-20 01:17 +0200 http://bitbucket.org/pypy/pypy/changeset/6e8fd621566a/ Log:Ups, not suppose to include this code diff --git a/rpython/rlib/rbigint.py b/rpython/rlib/rbigint.py --- a/rpython/rlib/rbigint.py +++

[pypy-commit] pypy math-improvements: Prebuild nulldigits list for use on null results where the list is not modified, reorder if operations in int_mul so power of two happens before single size check

2017-10-19 Thread stian
Author: stian Branch: math-improvements Changeset: r92805:587f1f780bd1 Date: 2017-10-19 23:43 +0200 http://bitbucket.org/pypy/pypy/changeset/587f1f780bd1/ Log:Prebuild nulldigits list for use on null results where the list is not modified, reorder if operations in int_mul so power of t

[pypy-commit] pypy math-improvements: Avoid copy if the sign stay the same in int_mul

2017-10-19 Thread stian
Author: stian Branch: math-improvements Changeset: r92804:0f49fdf5b940 Date: 2017-10-19 23:03 +0200 http://bitbucket.org/pypy/pypy/changeset/0f49fdf5b940/ Log:Avoid copy if the sign stay the same in int_mul diff --git a/rpython/rlib/rbigint.py b/rpython/rlib/rbigint.py --- a/rpython/rlib/rbig

[pypy-commit] pypy math-improvements: Undo this move, it is actully 50% slower for power of two calculations on single digit longs

2017-10-19 Thread stian
Author: stian Branch: math-improvements Changeset: r92807:bbeb35d80f5f Date: 2017-10-20 02:05 +0200 http://bitbucket.org/pypy/pypy/changeset/bbeb35d80f5f/ Log:Undo this move, it is actully 50% slower for power of two calculations on single digit longs diff --git a/rpython/rlib/rbigint