Java Hash Calculate hash64To32(long lg)

Here you can find the source of hash64To32(long lg)

Description

hash To

License

Open Source License

Declaration

public static int hash64To32(long lg) 

Method Source Code

//package com.java2s;
/*******************************************************************************
 * Copyright (c) 2013 BowenCai.//from   w ww .  j ava 2  s  . co m
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the GNU Public License v3.0
 * which accompanies this distribution, and is available at
 * http://www.gnu.org/licenses/gpl.html
 * 
 * Contributors:
 *     BowenCai - initial API and implementation
 ******************************************************************************/

public class Main {
    public static int hash64To32(long lg) {

        return (int) (lg ^ (lg >>> 32));
    }
}

Related

  1. hash16(int hash)
  2. hash3(int hash, Object x, Object y, Object z)
  3. Hash32(byte[] v, int iStart, int iLength)
  4. hash32shiftmult(int k)
  5. hash64(final byte[] data, int length)
  6. hash64to32(long v)
  7. hashAdd(final int left, final int right)
  8. hashAll(Object[] array)
  9. hasHangulJongSung(char ch)