title: Performance of memmove compared to memcpy twice?
body: <p>I have seen the difference pointed in the accepted answer in <a href="https://stackoverflow.com/questions/1201319/what-is-the-difference-between-memmove-and-memcpy">What is the difference between memmove and memcpy?</a> and it said <code>memmove might be very slightly slower than memcpy</code>.</p>
  
  <p>We can implement an alternative for <code>memmove</code> by doing as follows: allocate a temporary buffer, then <code>memcpy</code> twice (src -> tmp, tmp -> dest). My question is: which way is faster, <code>memmove</code> or the alternative?</p>