Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int[] hash = new int[] { 0x9E3779B9, 0x01234567, 0x89ABCDEF, 0x243F6A88, 0xB7E15162 };
- for (int i : intArray) {
- long l = (long) hash[0] * hash[0] + i;
- hash[0] = (int) l;
- hash[1] += l;
- hash[2] += (l >> 32);
- hash[3] ^= l;
- hash[4] ^= (l >> 32);
- }
Add Comment
Please, Sign In to add comment