Alterar sinal usando operadores bit a bit

Como alterar o sinal de int usando operadores bitwise? Obviamente podemos usarx*=-1 oux/=-1. Existe alguma maneira mais rápida de fazer isso?

Eu fiz um pequeno teste como abaixo. Só por curiosidade...

public class ChangeSign {
    public static void main(String[] args) {
        int x = 198347;
        int LOOP = 1000000;
        int y;
        long start = System.nanoTime();
        for (int i = 0; i < LOOP; i++) {
            y = (~x) + 1;
        }
        long mid1 = System.nanoTime();
        for (int i = 0; i < LOOP; i++) {
            y = -x;
        }
        long mid2 = System.nanoTime();
        for (int i = 0; i < LOOP; i++) {
            y = x * -1;
        }
        long mid3 = System.nanoTime();
        for (int i = 0; i < LOOP; i++) {
            y = x / -1;
        }
        long end = System.nanoTime();
        System.out.println(mid1 - start);
        System.out.println(mid2 - mid1);
        System.out.println(mid3 - mid2);
        System.out.println(end - mid3);
    }
}

A saída é quase semelhante a:

2200211
835772
1255797
4651923

questionAnswers(3)

yourAnswerToTheQuestion