This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Eli.Stevens
Recipients Eli.Stevens, mark.dickinson, mark.wiebe
Date 2011-04-05.10:10:26
SpamBayes Score 1.0264416e-08
Marked as misclassified No
Message-id <>
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:31Eli.Stevenssetrecipients: + Eli.Stevens, mark.dickinson, mark.wiebe
2011-04-05 10:10:31Eli.Stevenssetmessageid: <>
2011-04-05 10:10:28Eli.Stevenslinkissue11734 messages
2011-04-05 10:10:28Eli.Stevenscreate