消息 [96999]
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. |
|
| 日期 |
用户 |
动作 |
参数 |
| 2009-12-29 19:10:58 | mark.dickinson | 修改 | recipients:
+ mark.dickinson, vstinner |
| 2009-12-29 19:10:57 | mark.dickinson | 修改 | messageid: <1262113857.69.0.978153966977.issue5576@psf.upfronthosting.co.za> |
| 2009-12-29 19:10:56 | mark.dickinson | 链接 | issue5576 messages |
| 2009-12-29 19:10:56 | mark.dickinson | 创建 | |
|