summaryrefslogtreecommitdiff
path: root/Objects/longobject.c
AgeCommit message (Expand)AuthorLines
2010-01-02Refactor some longobject internals: PyLong_AsDouble and _PyLong_AsScaledDoubleMark Dickinson-221/+146
2009-12-27Issue #1811: Improve accuracy and consistency of true division for integers.Mark Dickinson-30/+251
2009-12-21Issue #7528: Backport PyLong_AsLongAndOverflow from py3k to trunk.Mark Dickinson-31/+101
2009-10-25Issue #1087418: Small performance boost for bitwise operations on longs.Mark Dickinson-66/+100
2009-09-28Style/consistency/nano-optimization nit: replace occurrences ofMark Dickinson-6/+6
2009-09-21Silence MSVC compiler warnings.Mark Dickinson-2/+3
2009-09-16Issue #6713: Improve performance of str(n) and repr(n) for integers nMark Dickinson-0/+119
2009-09-13Fix potential signed-overflow bug in _PyLong_Format; also fixMark Dickinson-9/+11
2009-09-06Remove redundant assignmentMark Dickinson-1/+0
2009-05-02Remove unnecessary use of context for long getters.Mark Dickinson-10/+15
2009-04-20Issue #3166: Make long -> float (and int -> float) conversionsMark Dickinson-15/+152
2009-04-02sys.long_info attributes should be ints, not longsMark Dickinson-2/+4
2009-03-23Issue #5512: speed up the long division algorithm for Python longs.Mark Dickinson-91/+149
2009-03-20Issue #4258: Use 30-bit digits for Python longs, on 64-bit platforms.Mark Dickinson-0/+49
2009-02-25Replace long with twodigits, to avoid dependingMark Dickinson-1/+1
2009-02-15A few more minor fixes in longobject.cMark Dickinson-5/+4
2009-02-15Issue #5260: Various portability and standards compliance fixes, optimizationsMark Dickinson-46/+35
2009-02-10Issue #5175: PyLong_AsUnsignedLongLong now raises OverflowError forMark Dickinson-1/+1
2009-01-26Fix comment.Mark Dickinson-3/+3
2009-01-26Fix undefined behaviour (left shift of negative value) in long_hash. Also,Mark Dickinson-9/+10
2009-01-25No need for carry to be type twodigits in _PyLong_AsByteArray; digit is large...Mark Dickinson-1/+1
2009-01-24Issue #4393: fix 3 classes of potential portability problems in longobject.c:Mark Dickinson-23/+20
2008-12-17Issue #3439: add bit_length method to int and long.Mark Dickinson-0/+71
2008-08-04Issue #1481296: (again!) Make conversion of a float NaN to an int orMark Dickinson-2/+4
2008-07-31Security patches from Apple: prevent int overflow when allocating memoryNeal Norwitz-0/+2
2008-07-10Added additional __sizeof__ implementations and addressed comments made inRobert Schuppenies-2/+2
2008-06-24Revert 64424, 64438, and 64439.Raymond Hettinger-7/+0
2008-06-20Make bin() implementation parallel oct() and hex() so that int/long subclasse...Raymond Hettinger-0/+7
2008-06-09This reverts r63675 based on the discussion in this thread:Gregory P. Smith-16/+16
2008-06-01Some style nits. Also clarify in the docstrings what __sizeof__ does.Georg Brandl-1/+1
2008-06-01Issue #2898: Added sys.getsizeof() to retrieve size of objects in bytes.Robert Schuppenies-0/+13
2008-05-30Refactor and clean up str.format() code (and helpers) in advance of optimizat...Eric Smith-16/+11
2008-05-26Renamed PyString to PyBytesChristian Heimes-17/+17
2008-04-18I finally got the time to update and merge Mark's and my trunk-math branch. T...Christian Heimes-0/+12
2008-04-15Fix for possible signed overflow: the behaviour of -LONG_MIN isMark Dickinson-6/+19
2008-03-28Revert r61969 which added casts to Py_CHARMASK to avoid compiler warnings.Neal Norwitz-5/+5
2008-03-27Fix warnings about using char as an array subscript. This is not portableNeal Norwitz-5/+5
2008-03-18Fix build on platforms that don't have intptr_t. Patch by Joseph Armbruster.Jeffrey Yasskin-1/+1
2008-03-17Finished backporting PEP 3127, Integer Literal Support and Syntax.Eric Smith-1/+14
2008-02-17Backport of PEP 3101, Advanced String Formatting, from py3k.Eric Smith-0/+36
2008-02-10Added PyNumber_ToBase and supporting routines _PyInt_Format andEric Smith-14/+23
2008-01-25Backport of several functions from Python 3.0 to 2.6 including PyUnicode_From...Christian Heimes-165/+165
2008-01-18Silence Coverity false alerts with CIDs #172, #183, #184Christian Heimes-0/+1
2008-01-05Continue rolling back pep-3141 changes that changed behavior from 2.5. ThisJeffrey Yasskin-34/+0
2008-01-04Make math.{floor,ceil}({int,long}) return float again for backwardsJeffrey Yasskin-2/+2
2008-01-04Bug #1481296: Fixed long(float('nan'))!=0L.Christian Heimes-0/+3
2008-01-03Backport PEP 3141 from the py3k branch to the trunk. This includes r50877 (justJeffrey Yasskin-15/+67
2007-12-19#1629: Renamed Py_Size, Py_Type and Py_Refcnt to Py_SIZE, Py_TYPE and Py_REFC...Christian Heimes-89/+89
2007-09-19Issue #1772851. Alters long.__hash__ from being *almost* completelyFacundo Batista-0/+8
2007-07-21PEP 3123: Provide forward compatibility with Python 3.0, while keepingMartin v. Löwis-89/+89