- 09 May, 2010 3 kayıt (commit)
-
-
Mark Dickinson yazdı
-
Mark Dickinson yazdı
-
Antoine Pitrou yazdı
-
- 08 May, 2010 1 kayıt (commit)
-
-
Mark Dickinson yazdı
-
- 07 Nis, 2010 1 kayıt (commit)
-
-
Stefan Krah yazdı
-
- 06 Nis, 2010 2 kayıt (commit)
-
-
Mark Dickinson yazdı
-
Mark Dickinson yazdı
left-shifting an integer by more than 2**31 on a 64-bit machine. Also convert shift counts to a Py_ssize_t instead of a C long.
-
- 30 Ock, 2010 1 kayıt (commit)
-
-
Mark Dickinson yazdı
long long variant of PyLong_AsLongAndOverflow. Patch by Case Van Horsen.
-
- 02 Ock, 2010 1 kayıt (commit)
-
-
Mark Dickinson yazdı
(the latter renamed to _PyLong_Frexp) now use the same core code. The exponent produced by _PyLong_Frexp now has type Py_ssize_t instead of the previously used int, and no longer needs scaling by PyLong_SHIFT. This frees the math module from having to know anything about the PyLong implementation. This closes issue #5576.
-
- 27 Ara, 2009 1 kayıt (commit)
-
-
Mark Dickinson yazdı
-
- 21 Ara, 2009 1 kayıt (commit)
-
-
Mark Dickinson yazdı
Thanks Case Van Horsen for the patch.
-
- 25 Eki, 2009 1 kayıt (commit)
-
-
Mark Dickinson yazdı
Initial patch by Gregory Smith; some tweaks added.
-
- 28 Eyl, 2009 1 kayıt (commit)
-
-
Mark Dickinson yazdı
(high_bits << PyLong_SHIFT) + low_bits with (high_bits << PyLong_SHIFT) | low_bits in Objects/longobject.c. Motivation: - shouldn't unnecessarily mix bit ops with arithmetic ops (style) - this pattern should be spelt the same way thoughout (consistency) - it's very very very slightly faster: no need to worry about carries to the high digit (nano-optimization).
-
- 21 Eyl, 2009 1 kayıt (commit)
-
-
Mark Dickinson yazdı
-
- 16 Eyl, 2009 1 kayıt (commit)
-
-
Mark Dickinson yazdı
(up to 3.1 times faster in tests), by special-casing base 10 in _PyLong_Format. (Backport of r74851 from py3k.)
-
- 13 Eyl, 2009 1 kayıt (commit)
-
-
Mark Dickinson yazdı
a couple of whitespace issues.
-
- 06 Eyl, 2009 1 kayıt (commit)
-
-
Mark Dickinson yazdı
-
- 02 May, 2009 1 kayıt (commit)
-
-
Mark Dickinson yazdı
(Related to issue #5880).
-
- 20 Nis, 2009 1 kayıt (commit)
-
-
Mark Dickinson yazdı
correctly rounded, using round-half-to-even. This ensures that the value of float(n) doesn't depend on whether we're using 15-bit digits or 30-bit digits for Python longs.
-
- 02 Nis, 2009 1 kayıt (commit)
-
-
Mark Dickinson yazdı
-
- 23 Mar, 2009 1 kayıt (commit)
-
-
Mark Dickinson yazdı
The basic algorithm remains the same; the most significant speedups come from the following three changes: (1) normalize by shifting instead of multiplying and dividing (2) the old algorithm usually did an unnecessary extra iteration of the outer loop; remove this. As a special case, this means that long divisions with a single-digit result run twice as fast as before. (3) make inner loop much tighter. Various benchmarks show speedups of between 50% and 150% for long integer divisions and modulo operations.
-
- 20 Mar, 2009 1 kayıt (commit)
-
-
Mark Dickinson yazdı
Backport of r70459.
-
- 25 Şub, 2009 1 kayıt (commit)
-
-
Mark Dickinson yazdı
on sizeof(digit) < sizeof(long)
-
- 15 Şub, 2009 2 kayıt (commit)
-
-
Mark Dickinson yazdı
-
Mark Dickinson yazdı
and cleanups in Objects/longobject.c. The most significant change is that longs now use less memory: average savings are 2 bytes per long on 32-bit systems and 6 bytes per long on 64-bit systems. (This memory saving already exists in py3k.)
-
- 10 Şub, 2009 1 kayıt (commit)
-
-
Mark Dickinson yazdı
negative arguments. Previously, it raised TypeError. Thanks Lisandro Dalcin.
-
- 26 Ock, 2009 2 kayıt (commit)
-
-
Mark Dickinson yazdı
-
Mark Dickinson yazdı
rewrap a line of length > 79, and update comments.
-
- 25 Ock, 2009 1 kayıt (commit)
-
-
Mark Dickinson yazdı
This change should silence a compiler warning on Windows.
-
- 24 Ock, 2009 1 kayıt (commit)
-
-
Mark Dickinson yazdı
- fix some places where counters into ob_digit were declared as int instead of Py_ssize_t - add (twodigit) casts where necessary - fix code in _PyLong_AsByteArray that uses << on negative values
-
- 17 Ara, 2008 1 kayıt (commit)
-
-
Mark Dickinson yazdı
Thanks Fredrik Johansson and Victor Stinner for code, Raymond Hettinger for review.
-
- 04 Agu, 2008 1 kayıt (commit)
-
-
Mark Dickinson yazdı
long raise ValueError instead of returning 0. Also, change the error message for conversion of an infinity to an integer, replacing 'long' by 'integer', so that it's appropriate for both long(float('inf')) and int(float('inf')).
-
- 31 Tem, 2008 1 kayıt (commit)
-
-
Neal Norwitz yazdı
-
- 10 Tem, 2008 1 kayıt (commit)
-
-
Robert Schuppenies yazdı
Issue3122.
-
- 24 Haz, 2008 1 kayıt (commit)
-
-
Raymond Hettinger yazdı
-
- 20 Haz, 2008 1 kayıt (commit)
-
-
Raymond Hettinger yazdı
Make bin() implementation parallel oct() and hex() so that int/long subclasses can override or so that other classes can support.
-
- 09 Haz, 2008 1 kayıt (commit)
-
-
Gregory P. Smith yazdı
http://mail.python.org/pipermail/python-dev/2008-June/079988.html Python 2.6 should stick with PyString_* in its codebase. The PyBytes_* names in the spirit of 3.0 are available via a #define only. See the email thread.
-
- 01 Haz, 2008 2 kayıt (commit)
-
-
Georg Brandl yazdı
-
Robert Schuppenies yazdı
-
- 30 May, 2008 1 kayıt (commit)
-
-
Eric Smith yazdı
-