]> granicus.if.org Git - python/commit
Introduce new private API function _PyLong_AsScaledDouble. Not used yet,
authorTim Peters <tim.peters@gmail.com>
Tue, 4 Sep 2001 02:50:49 +0000 (02:50 +0000)
committerTim Peters <tim.peters@gmail.com>
Tue, 4 Sep 2001 02:50:49 +0000 (02:50 +0000)
commita1c1b0f46865bddd9a84dfae6c146a0e010a4496
tree3633fd98894245d55b3f5f22047e5a582704d669
parent37a309db7086381da6ae176cec8817cdd75de872
Introduce new private API function _PyLong_AsScaledDouble.  Not used yet,
but will be the foundation for Good Things:
+ Speed PyLong_AsDouble.
+ Give PyLong_AsDouble the ability to detect overflow.
+ Make true division of long/long nearly as accurate as possible (no
  spurious infinities or NaNs).
+ Return non-insane results from math.log and math.log10 when passing a
  long that can't be approximated by a double better than HUGE_VAL.
Include/longobject.h
Objects/longobject.c