]> granicus.if.org Git - python/commit
Added new private API function _PyLong_NumBits. This will be used at the
authorTim Peters <tim.peters@gmail.com>
Tue, 28 Jan 2003 20:37:45 +0000 (20:37 +0000)
committerTim Peters <tim.peters@gmail.com>
Tue, 28 Jan 2003 20:37:45 +0000 (20:37 +0000)
commitbaefd9e552723c6489c69cf5df93f82b473550a2
tree25300bbc824f4b60c7c7ac1a352d9246ab0e2169
parent3d8c01b31c1a58d2181f78c5df2b0e79131046c0
Added new private API function _PyLong_NumBits.  This will be used at the
start for the C implemention of new pickle LONG1 and LONG4 opcodes (the
linear-time way to pickle a long is to call _PyLong_AsByteArray, but
the caller has no idea how big an array to allocate, and correct
calculation is a bit subtle).
Include/longobject.h
Modules/_testcapimodule.c
Objects/longobject.c