title: Values of k possible in leal
body: <p>Let's say <code>%edi</code> would be x and k is a constant integer (positive). If I wanna do <code>%eax&lt;-k*x</code> so that it's faster than <code>imul</code>, I use leal, right? So my question is, if the scaling factor is 1, 2, 4, 8, and I use a single <code>leal</code> instruction, what values of k are possible? I'm thinking it would be 2^k, but I'm not sure about it, could someone explain it to me?</p>
  
  <p>And if I use a pair of leal instructions one after the other, what values of k are possible? </p>