Re:Why doesn't GCC optimize a*a*a*a*a*a to (a*a*a)*(a*a*a)? ...
by taeric on Thursday March 27, 2014 @10:27AM
(#7480572)
Also a crap ton faster, right?
[ Parent
| on HN ]
Re:Why doesn't GCC optimize a*a*a*a*a*a to (a*a*a)*(a*a*a)? ...
by Narishma on Thursday March 27, 2014 @11:29AM
(#7480974)
Yes, if by faster you mean slower.
Re:Why doesn't GCC optimize a*a*a*a*a*a to (a*a*a)*(a*a*a)? ...
by taeric on Thursday March 27, 2014 @12:11PM
(#7481265)
Ha! Yes, for floating point. I meant my post to more communicate that moving it behind a library/method would allow you to make that decision elsewhere easily. I did not even come close to making that point. (I got distracted reading some interesting hacks that approximate this in insane speed.)