public static long hash64(short data) {
    long hash = DEFAULT_SEED;
    long k1 = 0;
    k1 ^= ((long) data & 0xff) << 8;
    k1 ^= ((long)((data & 0xFF00) >> 8) & 0xff);
    k1 *= C1;
    k1 = Long.rotateLeft(k1, R1);
    k1 *= C2;
    hash ^= k1;

    // finalization
    hash ^= Short.BYTES;
    hash = fmix64(hash);
    return hash;
  }
Murmur3 64-bit variant. This is essentially MSB 8 bytes of Murmur3 128-bit variant.

@param data - input byte array
@return - hashcode
storage-api/src/java/org/apache/hive/common/util/Murmur3.java