Message152509
I would definitely classify this as a bug in Python 2.7 as it breaks backwards-compatibility for embedding environments that default to 64bit FPU precision (e.g. Delphi).
Additionally the bug is very hard to detect and leads to wrong values with possibly disastrous effects.
Appended a patch with a new implementation of the Py_SET_53BIT_PRECISION_* macros for win32:
- precision is set only when needed
- setting and restoring only the x87 controlword (using __control87_2
function).
- macros are not used for WIN64 as there's no x87 there
- there's no need for a custom symbol in the vc project anymore,
as I'm using the predefined _WIN32 symbol. |
|
Date |
User |
Action |
Args |
2012-02-03 13:51:41 | samuel.iseli | set | recipients:
+ samuel.iseli, jcea, mark.dickinson, eric.smith, python-dev |
2012-02-03 13:51:41 | samuel.iseli | set | messageid: <1328277101.06.0.344991852847.issue13889@psf.upfronthosting.co.za> |
2012-02-03 13:51:40 | samuel.iseli | link | issue13889 messages |
2012-02-03 13:51:40 | samuel.iseli | create | |
|