News for hackers. Stuff that matters.
Re:GCC optimized code gives strange floating point results by effie on Tuesday February 28, 2017 @06:17PM (#13759220)
trelliscoded probably meant bits in scratchpad, which are not accessible to the programmer. I read somewhere that those hidden bits may not be saved and regenerated properly as part of cpu resuming execution of the program (task switching). I do not know if that can happen, but even if not, achieving consistency on subsequent runs is quite difficult - apparently one has to make sure the program and all libraries it uses were compiled with special compiler flags that prevent data alignment influencing results of FPU operations.

https://software.intel.com/articles/consistency-of-floating-...

There are no comments on this comment yet.