title: How are the ntoh functions implemented under RHEL/GCC?
body: <p>A production issue has led our team to the following questions:</p>
  
  <ol>
  <li>Under RHEL6 using GCC 4.4.6, how are <code>ntohs</code> and <code>ntohl</code> implemented?</li>
  <li>Are the implementations known to be fast or slow?</li>
  <li>How can I actually see the generated assembly code for the functions?</li>
  </ol>
  
  <p>I know the implications behind questions may seem far-fetched and ridiculous, but I have been asked to investigate.</p>
  
  <p>The hardware in question is an Intel box, little endian, 64-bit processor and compiled in 64 bit.</p>