[issue5576] Don't use PyLong_SHIFT with _PyLong_AsScaledDouble()
Mark Dickinson
report at bugs.python.org
Tue Dec 29 20:10:57 CET 2009
Mark Dickinson <dickinsm at gmail.com> added the comment:
Here's a patch:
- rename _PyLong_AsScaledDouble to _PyLong_Frexp (for the benefit of
anyone foolish enough to be using an undocumented private API
function)
- make the exponent type Py_ssize_t instead of int
- do the scaling by PyLong_SHIFT in _PyLong_Frexp instead of in the
functions that call it (e.g., loghelper in the math module)
- remove longintrepr.h include from math module, since it's no longer
needed
- change _PyLong_Frexp algorithm to do correct rounding
- refactor PyLong_Double to use _PyLong_Frexp.
----------
Added file: http://bugs.python.org/file15694/issue5576.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5576>
_______________________________________
More information about the Python-bugs-list
mailing list