Message306793
Interesting info about NaN on Intel x86:
https://stackoverflow.com/questions/14021763/c-multiplication-or-addition-floats-results-nan
"The multiplication is being performed in the x87 registers, and a floating-point stack overflow has occurred due to (possibly unrelated) earlier operations in your program's execution. When the processor is in this failure state, all computations performed on the x87 registers produce NaN results."
--
For FreeBSD, Python main() starts with:
/* 754 requires that FP exceptions run in "no stop" mode by default,
* and until C vendors implement C99's ways to control FP exceptions,
* Python requires non-stop mode. Alas, some platforms enable FP
* exceptions by default. Here we disable them.
*/
#ifdef __FreeBSD__
fedisableexcept(FE_OVERFLOW);
#endif |
|
Date |
User |
Action |
Args |
2017-11-23 09:24:10 | vstinner | set | recipients:
+ vstinner |
2017-11-23 09:24:09 | vstinner | set | messageid: <1511429049.98.0.213398074469.issue32119@psf.upfronthosting.co.za> |
2017-11-23 09:24:09 | vstinner | link | issue32119 messages |
2017-11-23 09:24:09 | vstinner | create | |
|