Message133013
Made the _PyFloat_Pack2 match the algo in _PyFloat_Pack4, and did similar for Unpack. This should work on platforms that don't have IEEE 754 floats except for situations where an INF or NAN is unpacked (this is the same as the Unpack4 behavior).
This also gets rid of any need for #ifdef'd code (an ad-hoc speed test showed no noticeable difference between the numpy-based version and the CPython-based version of the functions).
I've also added a bit of documentation to this version, as well as more tests.
I haven't changed anything about the native_table entry or Pack4's non-round-to-even behavior. |
|
Date |
User |
Action |
Args |
2011-04-05 10:10:31 | Eli.Stevens | set | recipients:
+ Eli.Stevens, mark.dickinson, mark.wiebe |
2011-04-05 10:10:31 | Eli.Stevens | set | messageid: <1301998231.02.0.934073455355.issue11734@psf.upfronthosting.co.za> |
2011-04-05 10:10:28 | Eli.Stevens | link | issue11734 messages |
2011-04-05 10:10:28 | Eli.Stevens | create | |
|