<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Objects/longobject.c, branch v2.4b2</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<id>http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Objects/longobject.c?h=v2.4b2</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Objects/longobject.c?h=v2.4b2'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2004-09-20T06:17:46Z</updated>
<entry>
<title>Patch #1024670: Support int objects in PyLong_AsUnsignedLong[Mask].</title>
<updated>2004-09-20T06:17:46Z</updated>
<author>
<name>Martin v. Löwis</name>
<email>martin@v.loewis.de</email>
</author>
<published>2004-09-20T06:17:46Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=729d47db091f33ab366be2e43d7bee17f06d10d7'/>
<id>urn:sha1:729d47db091f33ab366be2e43d7bee17f06d10d7</id>
<content type='text'>
</content>
</entry>
<entry>
<title>long_pow():  Fix more instances of leaks in error cases.</title>
<updated>2004-08-30T02:58:59Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2004-08-30T02:58:59Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=cd97da3b1d61be00bb06f3264a60418dbdb83bd8'/>
<id>urn:sha1:cd97da3b1d61be00bb06f3264a60418dbdb83bd8</id>
<content type='text'>
Bugfix candidate -- although long_pow() is so different now I doubt a
patch would apply to 2.3.
</content>
</entry>
<entry>
<title>SF patch 936813: fast modular exponentiation</title>
<updated>2004-08-30T02:44:38Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2004-08-30T02:44:38Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=47e52ee0c5c8868db903d476b49c3368fce4d79a'/>
<id>urn:sha1:47e52ee0c5c8868db903d476b49c3368fce4d79a</id>
<content type='text'>
This checkin is adapted from part 2 (of 3) of Trevor Perrin's patch set.

BACKWARD INCOMPATIBILITY:  SHIFT must now be divisible by 5.  AFAIK,
nobody will care.  long_pow() could be complicated to worm around that,
if necessary.

long_pow():
  - BUGFIX:  This leaked the base and power when the power was negative
    (and so the computation delegated to float pow).
  - Instead of doing right-to-left exponentiation, do left-to-right.  This
    is more efficient for small bases, which is the common case.
  - In addition, if the exponent is large (more than FIVEARY_CUTOFF
    digits), precompute [a**i % c for i in range(32)], and go left to
    right 5 bits at a time.
l_divmod():
  - The signature changed so that callers who don't want the quotient,
    or don't want the remainder, can pass NULL in the slot they don't
    want.  This saves them from having to declare a vrbl for unwanted
    stuff, and remembering to decref it.
long_mod(), long_div(), long_classic_div():
  - Adjust to new l_divmod() signature, and simplified as a result.
</content>
</entry>
<entry>
<title>SF patch 936813: fast modular exponentiation</title>
<updated>2004-08-29T22:16:50Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2004-08-29T22:16:50Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=0973b99e1cfe13b3d197e1b6c449a2d75b55d17a'/>
<id>urn:sha1:0973b99e1cfe13b3d197e1b6c449a2d75b55d17a</id>
<content type='text'>
This checkin is adapted from part 1 (of 3) of Trevor Perrin's patch set.

x_mul()
  - sped a little by optimizing the C
  - sped a lot (~2X) if it's doing a square; note that long_pow() squares
    often
k_mul()
  - more cache-friendly now if it's doing a square
KARATSUBA_CUTOFF
  - boosted; gradeschool mult is quicker now, and it may have been too low
    for many platforms anyway
KARATSUBA_SQUARE_CUTOFF
  - new
  - since x_mul is a lot faster at squaring now, the point at which
    Karatsuba pays for squaring is much higher than for general mult
</content>
</entry>
<entry>
<title>SF patch 703666: Several objects don't decref tmp on failure in subtype_new</title>
<updated>2003-06-28T20:04:25Z</updated>
<author>
<name>Raymond Hettinger</name>
<email>python@rcn.com</email>
</author>
<published>2003-06-28T20:04:25Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=f466793fcc6e2234f4843bd6a04625f1fac96132'/>
<id>urn:sha1:f466793fcc6e2234f4843bd6a04625f1fac96132</id>
<content type='text'>
Submitted By: Christopher A. Craig

Fillin some missing decrefs.
</content>
</entry>
<entry>
<title>SF patch 730594:  assert from longobject.c, line 1215.</title>
<updated>2003-05-05T20:39:43Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2003-05-05T20:39:43Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=c7bc0b98e7cd2190a03da1a5269cdaaea711429e'/>
<id>urn:sha1:c7bc0b98e7cd2190a03da1a5269cdaaea711429e</id>
<content type='text'>
Some version of gcc in the "RTEMS port running on the Coldfire (m5200)
processor" generates bad code for a loop in long_from_binary_base(),
comparing the wrong half of an int to a short.  The patch changes the
decl of the short temp to be an int temp instead.  This "simplifies"
the code enough that gcc no longer blows it.
</content>
</entry>
<entry>
<title>Silence compiler warnings in VC 7.</title>
<updated>2003-05-01T21:31:53Z</updated>
<author>
<name>Jeremy Hylton</name>
<email>jeremy@alum.mit.edu</email>
</author>
<published>2003-05-01T21:31:53Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=fc61f9a36e937221f0bbee02afd419055a7cdb6f'/>
<id>urn:sha1:fc61f9a36e937221f0bbee02afd419055a7cdb6f</id>
<content type='text'>
</content>
</entry>
<entry>
<title>SF # 595026: support for masks in getargs.c.</title>
<updated>2003-04-17T18:55:45Z</updated>
<author>
<name>Thomas Heller</name>
<email>theller@ctypes.org</email>
</author>
<published>2003-04-17T18:55:45Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=a4ea603b055533e71920a088acb1c106e4895dbd'/>
<id>urn:sha1:a4ea603b055533e71920a088acb1c106e4895dbd</id>
<content type='text'>
New functions:
  unsigned long PyInt_AsUnsignedLongMask(PyObject *);
  unsigned PY_LONG_LONG) PyInt_AsUnsignedLongLongMask(PyObject *);
  unsigned long PyLong_AsUnsignedLongMask(PyObject *);
  unsigned PY_LONG_LONG) PyLong_AsUnsignedLongLongMask(PyObject *);

New and changed format codes:

b unsigned char 0..UCHAR_MAX
B unsigned char none **
h unsigned short 0..USHRT_MAX
H unsigned short none **
i int INT_MIN..INT_MAX
I * unsigned int 0..UINT_MAX
l long LONG_MIN..LONG_MAX
k * unsigned long none
L long long LLONG_MIN..LLONG_MAX
K * unsigned long long none

Notes:

* New format codes.

** Changed from previous "range-and-a-half" to "none"; the
range-and-a-half checking wasn't particularly useful.

New test test_getargs2.py, to verify all this.
</content>
</entry>
<entry>
<title>Rename LONG_LONG to PY_LONG_LONG. Fixes #710285.</title>
<updated>2003-03-29T10:06:18Z</updated>
<author>
<name>Martin v. Löwis</name>
<email>martin@v.loewis.de</email>
</author>
<published>2003-03-29T10:06:18Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=b9a0f9121876cbc728cbef88f16bb32b92712d2d'/>
<id>urn:sha1:b9a0f9121876cbc728cbef88f16bb32b92712d2d</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fix SF bug #689659, 64-bit int and long hash keys incompatible</title>
<updated>2003-02-23T23:11:41Z</updated>
<author>
<name>Neal Norwitz</name>
<email>nnorwitz@gmail.com</email>
</author>
<published>2003-02-23T23:11:41Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=d5a65a77cfdd81ad6945195c88e367fcd9f709c2'/>
<id>urn:sha1:d5a65a77cfdd81ad6945195c88e367fcd9f709c2</id>
<content type='text'>
On a 64-bit machine, a dictionary could contain duplicate int/long keys
if the value was &gt; 2**32.
</content>
</entry>
</feed>
