Java Murmur Hash murmurMix(long h)

Here you can find the source of murmurMix(long h)

Description

Index of units char in prefixes

License

Open Source License

Declaration

private static long murmurMix(long h) 

Method Source Code

//package com.java2s;
/*//from w w  w  .jav  a 2 s. c  o  m
 * Copyright (c) 2014 Chris Welty.
 *
 * This is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License, version 3,
 * as published by the Free Software Foundation.
 *
 * This file is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * For the license, see <http://www.gnu.org/licenses/gpl.html>.
 */

public class Main {
    /**
     * Index of units char in prefixes
     */
    private static long murmurMix(long h) {
        h *= 0xc6a4a7935bd1e995L;
        h ^= h >>> 47 | h << 17;
        h *= 0xc6a4a7935bd1e995L;
        return h;
    }
}

Related

  1. murmurHash3(int k)
  2. murmurHash3(int x)
  3. murmurHash3(int x)
  4. MurmurHash3_fmix(int k)
  5. murmurhash3x8632(byte[] data, int offset, int len, int seed)
  6. murmurRehash(final int hash)