commit | a1c1b0f46865bddd9a84dfae6c146a0e010a4496 | [log] [tgz] |
---|---|---|
author | Tim Peters <tim.peters@gmail.com> | Tue Sep 04 02:50:49 2001 +0000 |
committer | Tim Peters <tim.peters@gmail.com> | Tue Sep 04 02:50:49 2001 +0000 |
tree | 3633fd98894245d55b3f5f22047e5a582704d669 | |
parent | 37a309db7086381da6ae176cec8817cdd75de872 [diff] |
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.