title: How to obtain the next Power Of Two of a given number?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/1322510/bit-twiddling-find-next-power-of-two">bit twiddling: find next power of two</a>  </p>
  </blockquote>
  
  
  
  <p>How to obtain the next Power Of Two of a given number?</p>
  
  <p>For example, i receive the number 138, the next POT number is 256.</p>
  
  <p>i receive the number 112, the next POT is 128.</p>
  
  <p>I need to do an algorithm that calculates that</p>
  
  <p>Thanks</p>