News for hackers. Stuff that matters.
Re:Why doesn't GCC optimize a*a*a*a*a*a to (a*a*a)*(a*a*a)? ... by username42 on Thursday March 27, 2014 @08:26AM (#7479896)
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.
Re:Why doesn't GCC optimize a*a*a*a*a*a to (a*a*a)*(a*a*a)? ... by Ono-Sendai on Thursday March 27, 2014 @08:51AM (#7479995)
The result depends on the number of multiplications, and hence roundings, that are done.