
9 Dec
2008
9 Dec
'08
4:26 p.m.
AMDG Giovanni Piero Deretta wrote:
I think that something along the lines of the following will likely work:
inline double exact(double x) { struct { volatile double x; } xx = { x }; return xx.x; }
Please no. Not only it might prevent other optimizations, but is also completely thread unsafe.
How so? In Christ, Steven Watanabe