]> granicus.if.org Git - python/commit
_PyLong_NumBits(): The definition of this was too specific to the quirky
authorTim Peters <tim.peters@gmail.com>
Fri, 31 Jan 2003 15:52:05 +0000 (15:52 +0000)
committerTim Peters <tim.peters@gmail.com>
Fri, 31 Jan 2003 15:52:05 +0000 (15:52 +0000)
commit5b8132ffa34244cc24b603d8462e6e733e014e71
tree9ed5a901229b5dfef77b2f88ddf961f57a211f1a
parent89fc4f3e5623d24632b1daf503a2f32ac2bd0d66
_PyLong_NumBits():  The definition of this was too specific to the quirky
needs of pickling longs.  Backed off to a definition that's much easier
to understand.  The pickler will have to work a little harder, but other
uses are more likely to be correct <0.5 wink>.

_PyLong_Sign():  New teensy function to characterize a long, as to <0, ==0,
or >0.
Include/longobject.h
Modules/_testcapimodule.c
Objects/longobject.c