moving roundToUpperPowerOfTwo in inline header file