summaryrefslogtreecommitdiff
path: root/Objects/longobject.c
AgeCommit message (Expand)AuthorLines
2006-10-09[Partial backport of r45947 | neal.norwitz]Andrew M. Kuchling-2/+3
2006-10-04A review of overflow-detecting code in the 2.4 branch.Armin Rigo-15/+35
2006-10-03[Backport r50779 | neal.norwitz]Andrew M. Kuchling-1/+2
2006-03-07Backport r42894: SF #1444030 Fix several potential defects foundHye-Shik Chang-1/+7
2005-07-18backporting fix by tim_one:Georg Brandl-5/+8
2005-03-03Revert previous checkin on getargs 'L' code. Try to convert allMartin v. Löwis-1/+22
2004-09-20Patch #1024670: Support int objects in PyLong_AsUnsignedLong[Mask].Martin v. Löwis-0/+11
2004-08-30long_pow(): Fix more instances of leaks in error cases.Tim Peters-3/+3
2004-08-30SF patch 936813: fast modular exponentiationTim Peters-107/+185
2004-08-29SF patch 936813: fast modular exponentiationTim Peters-21/+79
2003-06-28SF patch 703666: Several objects don't decref tmp on failure in subtype_newRaymond Hettinger-1/+3
2003-05-05SF patch 730594: assert from longobject.c, line 1215.Tim Peters-4/+4
2003-05-01Silence compiler warnings in VC 7.Jeremy Hylton-2/+2
2003-04-17SF # 595026: support for masks in getargs.c.Thomas Heller-0/+55
2003-03-29Rename LONG_LONG to PY_LONG_LONG. Fixes #710285.Martin v. Löwis-22/+22
2003-02-23Fix SF bug #689659, 64-bit int and long hash keys incompatibleNeal Norwitz-2/+4
2003-02-03_PyLong_Sign(): remove an assert that needed a variable ndigits thatGuido van Rossum-3/+2
2003-02-02long_from_binary_base(): Sped this a little by computing the # of bitsTim Peters-6/+6
2003-02-02Tightened a too-generous assert.Tim Peters-1/+1
2003-02-02long(string, base) now takes time linear in len(string) when base is aTim Peters-15/+108
2003-02-02cPickle.c: Full support for the new LONG1 and LONG4. Added comments.Tim Peters-2/+2
2003-01-31Squash compiler wng about signed/unsigned comparison mismatch.Tim Peters-1/+1
2003-01-31_PyLong_NumBits(): The definition of this was too specific to the quirkyTim Peters-8/+17
2003-01-29Implement appropriate __getnewargs__ for all immutable subclassable builtinGuido van Rossum-1/+12
2003-01-28Added new private API function _PyLong_NumBits. This will be used at theTim Peters-0/+35
2002-12-30Consolidate the int and long sequence repeat code. Before the change,Neil Schemenauer-19/+0
2002-11-19Change int() so that passing a string, unicode, float or long argumentWalter Dörwald-9/+20
2002-11-06Make int("...") return a long if an int would overflow.Walter Dörwald-8/+10
2002-09-03replace thread state objects' ticker and checkinterval fields with twoSkip Montanaro-4/+2
2002-08-20long_format(), long_lshift(): Someone on c.l.py is trying to boostTim Peters-2/+2
2002-08-15Illustrating by example one good reason not to trust a proof <wink>.Tim Peters-3/+3
2002-08-15k_mul() comments: In honor of Dijkstra, made the proof that "t3 fits"Tim Peters-27/+30
2002-08-15long_mul(): Simplified exit code. In particular, k_mul() returns aTim Peters-9/+3
2002-08-14k_mul() comments: Simplified the simplified explanation of why ah*bh andTim Peters-6/+3
2002-08-14k_mul() comments: Explained why there's always enough room to subtractTim Peters-0/+7
2002-08-13Fixed error in new comment.Tim Peters-4/+3
2002-08-13k_mul(): The fix for (ah+al)*(bh+bl) spilling 1 bit beyond the allocatedTim Peters-8/+44
2002-08-13Fix comment for PyLong_AsUnsignedLong() to say that the return valueGuido van Rossum-1/+1
2002-08-12k_lopsided_mul(): This allocated more space for bslice than necessary.Tim Peters-1/+1
2002-08-12Added new function k_lopsided_mul(), which is much more efficient thanTim Peters-10/+72
2002-08-12k_mul(): Moved an assert down. In a debug build, interrupting aTim Peters-2/+2
2002-08-12k_mul(): Heh -- I checked in two fixes for the last problem. Only keepTim Peters-2/+2
2002-08-12k_mul(): White-box testing turned up that (ah+al)*(bh+bl) can, in rareTim Peters-3/+11
2002-08-12x_mul(): Made life easier for C optimizers in the "grade school"Tim Peters-4/+5
2002-08-12k_mul() and long_mul(): I'm confident that the Karatsuba algorithm isTim Peters-9/+30
2002-08-12k_mul: Rearranged computation for better cache use. Ignored overflowTim Peters-60/+50
2002-08-12x_mul(): This failed to normalize its result.Tim Peters-6/+18
2002-08-12Introduced helper functions v_iadd and v_isub, for in-place digit-vectorTim Peters-29/+75
2002-08-12k_mul(): Repaired another typo in another comment.Tim Peters-1/+1
2002-08-12k_mul(): Repaired typo in comment.Tim Peters-1/+1