Java Murmur Hash murmur3fmix(int value)

Here you can find the source of murmur3fmix(int value)

Description

The Murmur3 Fmix function.

License

Open Source License

Parameter

Parameter Description
value the value to hash

Return

the result of the hash

Declaration

public static int murmur3fmix(int value) 

Method Source Code

//package com.java2s;

public class Main {
    /**//from  w  w  w  .  ja v a2 s  . c o m
     * The Murmur3 Fmix function.
     * @param value the value to hash
     * @return the result of the hash
     */
    public static int murmur3fmix(int value) {
        value ^= value >>> 16;
        value *= 0x85ebca6b;
        value ^= value >>> 13;
        value *= 0xc2b2ae35;
        value ^= value >>> 16;

        return value;
    }
}

Related

  1. murmur(String str, int seed)
  2. murmur2(final byte[] data)
  3. murmur2(int value, int salt)
  4. murmurHash(byte[] data, int offset, int length)
  5. murmurHash(int code)
  6. murmurhash2_64(final byte[] data, int length, int seed)
  7. murmurHash3(int k)