title: Intel x86_64 Assembly: What is good way to convert 32bit integer to 64bit int?
body: <p>As title says.
  My way to do this:</p>
  
  <pre><code>; eax holds 32bit integer
  sal rax, 32
  sar rax, 32
  ;after operation int is converted (rax holds the same value on 64 bits)
  </code></pre>
  
  <p>Is there more elegant/better/faster way to do this??</p>