B2G/gecko/browser/devtools/tilt/TiltMath.jsm
/**
   * Returns the next closest power of two greater than a number.
   *
   * @param {Number} aNumber
   *                 the number to be converted
   *
   * @return {Number} the next closest power of two for x
   */
Returns the next closest power of two greater than a number.
@param {Number} aNumber
the number to be converted

@return {Number} the next closest power of two for x
Returns the next closest power of two greater than a number . @param { Number } aNumber the number to be converted @return { Number } the next closest power of two for x
function TM_nextPowerOfTwo(aNumber)
  {
    --aNumber;
    for (let i = 1; i < 32; i <<= 1) {
      aNumber = aNumber | aNumber >> i;
    }
    return aNumber + 1;
  }
function TM_nextPowerOfTwo ( aNumber ) { -- aNumber ; for ( let i = 1 ; i < 32 ; i <<= 1 ) { aNumber = aNumber | aNumber >> i ; } return aNumber + 1 ; }
Returns the next closest power of two greater than a number.
Returns the next closest power of two greater than a number .