Message412640
> Is the macro PY_NO_SHORT_FLOAT_REPR also related to platforms which don't support IEEE 754?
Yes, though it's a bit more than that: we also need the platform either not to have issues with double rounding for normal numbers, or we need to be able to control the x87 rounding mode in the case that double rounding might be an issue. See the explanations in the source.
https://github.com/python/cpython/blob/025cbe7a9b5d3058ce2eb8015d3650e396004545/Include/pyport.h#L345-L355
> In 2022, which platforms don't support IEEE 754?
None that CPython might plausibly run on that I'm aware of. |
|
Date |
User |
Action |
Args |
2022-02-06 14:50:58 | mark.dickinson | set | recipients:
+ mark.dickinson, vstinner |
2022-02-06 14:50:58 | mark.dickinson | set | messageid: <1644159058.78.0.632025300026.issue46656@roundup.psfhosted.org> |
2022-02-06 14:50:58 | mark.dickinson | link | issue46656 messages |
2022-02-06 14:50:58 | mark.dickinson | create | |
|