Re:Optimising Assembly Like an 80's Hacker
by jcl on Monday February 16, 2009 @09:19AM
(#483004)
On earlier-model processors, it could be as bad as 40 cycles. You really didn't want to touch multiplication (or division!) back then. I recall programmers went as far as calculating memory offsets for a 320x200 screen as (x + (y << 8) + (y << 6)) instead of (x + y * 320).
http://home.comcast.net/~fbui/intel_i.html#imul