Message188504
Refreshed patch, with a few minor updates:
- Use copysign instead of signbit (we don't currently check for signbit
in the configure scripts); only check for negative zero when we've
already checked equality with 0.0.
- Use Py_IS_NAN and Py_IS_INFINITY instead of isinf and isnan.
- Add an extra check for really tiny numbers in _PyFloat_Pack2 to avoid binary64 subnormals in intermediate calculations.
- Remove a duplicate check for the case x == 0.0 in _PyFloat_Pack2.
- Make unpacking of ints and nans behave in the same way as float("inf") or float("nan"): use _Py_dg_infinity and _Py_dg_stdnan if available, else fall back to Py_HUGE_VAL and Py_NAN.
- Minor style nits (braces; use floating-point constants when comparing with floats; consistent capitalization for hex literals, etc.) |
|
Date |
User |
Action |
Args |
2013-05-06 11:02:18 | mark.dickinson | set | recipients:
+ mark.dickinson, belopolsky, pitrou, asvetlov, Eli.Stevens, mark.wiebe, paulehoffman |
2013-05-06 11:02:17 | mark.dickinson | set | messageid: <1367838137.08.0.0981797743277.issue11734@psf.upfronthosting.co.za> |
2013-05-06 11:02:17 | mark.dickinson | link | issue11734 messages |
2013-05-06 11:02:16 | mark.dickinson | create | |
|