title: How to reverse byte of a hexadecimal number?
body: <p>I want to reverse the bytes of hexadecimal number like:</p>
  
  <p><code>0x08090a0b</code> should convert to <code>0x0b0a0908</code>.</p>
  
  <p>I have used this macro.</p>
  
  <pre><code>#define REV(X)      ((X &lt;&lt; 24) | (((X&gt;&gt;16)&lt;&lt;24)&gt;&gt;16) | (((X&lt;&lt;16)&gt;&gt;24)&lt;&lt;16) | (X&gt;&gt;24))
  </code></pre>