Java xor xorShift(int x)

Here you can find the source of xorShift(int x)

Description

xor Shift

License

Open Source License

Declaration

public static int xorShift(int x) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    public static int xorShift(int x) {
        x ^= (x << 6);//from w  w  w .ja va2s .  c  om
        x ^= (x >>> 21);
        x ^= (x << 7);
        return x;
    }
}

Related

  1. XORInto(byte[] dest, byte[] src)
  2. xorLong(byte[] aBuffer, int aOffset, long aValue)
  3. xorMV(byte[] i_Value)
  4. xorOperation(String r1, String r2)
  5. xorSalsa8(int di, int xi, int[] X)