title: Faster method to copy arrays after typecasting in C?
body: <p>I have a two-dimesional integer array <code>InArray[2][60]</code> carrying <code>short</code> data in 2 LS bytes and bit field data in  2 MS bytes. Please suggest a faster method to extract <code>short</code> data and copy it to a <code>short</code> <code>OutArray[60]</code>, something on the lines for <code>memcpy()</code>. I presume iterating through each item is not the most optimal method of doing this.
  TIA</p>
  
  <p>EDIT : Adding code snippet</p>
  
  <pre><code>int InArray[2][60];
  short OutArray[60];
  for (int i=0; i &lt; 60;i++)
  {
      OutArray[i] = (short)(InArray[0][i] &amp; 0xffff);
  }
  </code></pre>
  
  <p>Is there a better and possibly faster way of doing this</p>