This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients christian.heimes, gregory.p.smith, mark.dickinson, vstinner
Date 2008-11-05.23:13:27
SpamBayes Score 0.02307616
Marked as misclassified No
Message-id <1225926808.5.0.75815096771.issue4258@psf.upfronthosting.co.za>
In-reply-to
Content
Mark: would it be possible to keep the "2 digits" hack in 
PyLong_FromLong, especially with base 2^15? Eg. "#if PyLong_SHIFT == 
15". The base 2^15 slow, so don't make it slower :-)

-	/* 2 digits */
-	if (!(ival >> 2*PyLong_SHIFT)) {
-		v = _PyLong_New(2);
-		if (v) {
-			Py_SIZE(v) = 2*sign;
-			v->ob_digit[0] = (digit)ival & PyLong_MASK;
-			v->ob_digit[1] = ival >> PyLong_SHIFT;
-		}
-		return (PyObject*)v;
-	}
History
Date User Action Args
2008-11-05 23:13:28vstinnersetrecipients: + vstinner, gregory.p.smith, mark.dickinson, christian.heimes
2008-11-05 23:13:28vstinnersetmessageid: <1225926808.5.0.75815096771.issue4258@psf.upfronthosting.co.za>
2008-11-05 23:13:27vstinnerlinkissue4258 messages
2008-11-05 23:13:27vstinnercreate