Comment on Why doesn't GCC optimize a*a*a*a*a*a to (a*a*a)*(a*a*a)? (2013)Comments−username4212yThe non associativity of addition is obvious, but for the multiplication, I understand why it does not give always the same answer, but I do not see why a change of the order could change the accuracy.−Ono-Sendai12yThe result depends on the number of multiplications, and hence roundings, that are done.
Comments
The non associativity of addition is obvious, but for the multiplication, I understand why it does not give always the same answer, but I do not see why a change of the order could change the accuracy.
The result depends on the number of multiplications, and hence roundings, that are done.