Quantcast
Channel:
Viewing all articles
Browse latest Browse all 4

The default will break Kahan

$
0
0

The default will break Kahan summation except at -O0.  I would suggest setting "-assume protect_parens" so you will not require O0.  -fp-model source|precise also ought to work.

If the compiler ignored parentheses consistently (but in violation of the standard) the Kahan summation would collapse into an ordinary sum with no Kahan corrections, but with correct results at lower accuracy.


Viewing all articles
Browse latest Browse all 4

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>