class BitUtil {

    public static int nearbyPowerOfTwo(int x) {
        int next = nextHighestPowerOfTwo(x);
        int prev = next >>> 1;
        return (next - x) <= (x - prev) ? next : prev;
    }

    private  BitUtil();

}