// not sure if this is faster or slower than main method static int roundUpToPowerOfTwo_alternateMethod(int v) { int i = Int.highestOneBit(v); ret v > i ? i << 1 : i; }