Exemplo n.º 1
0
            public UInt128 Visit(CosmosNumber64 cosmosNumber64, UInt128 seed)
            {
                UInt128  hash  = seed == RootHashSeed ? RootCache.Number64 : MurmurHash3.Hash128(HashSeeds.Number64, seed);
                Number64 value = cosmosNumber64.GetValue();

                Number64.DoubleEx doubleExValue = Number64.ToDoubleEx(value);
                return(MurmurHash3.Hash128(doubleExValue, hash));
            }
Exemplo n.º 2
0
 public override int GetHashCode()
 {
     return((int)MurmurHash3.Hash32(Number64.ToDoubleEx(this.GetValue()), 1943952435));
 }