On 1/23/2013 9:10 PM, Era Scarecrow wrote:
I remember doing things like that. If I was dividing something by 8 I would shift right instead by 3;
Compilers were doing that optimization 35 years ago, and probably decades longer than that.
Generally, if you're thinking about doing an optimization, it pays to check the output of the compiler, as it has probably beaten you to it :-)
