mollusk 0e4acfb8f2 fix incorrect folder name for julia-0.6.x
Former-commit-id: ef2c7401e0876f22d2f7762d182cfbcd5a7d9c70
2018-06-11 03:28:36 -07:00

11 lines
458 B
Julia

# This file is a part of Julia. License is MIT: https://julialang.org/license
## hashing small, built-in numeric types
## for a system image built without floating point support
hx(a::UInt64, b::UInt64, h::UInt) = hash_uint64(3a + b - h)
hash(x::UInt64, h::UInt) = hx(x, x, h)
hash(x::Int64, h::UInt) = hx(reinterpret(UInt64,abs(x)), reinterpret(UInt64,x), h)
hash(x::Union{Bool,Char,Int8,UInt8,Int16,UInt16,Int32,UInt32}, h::UInt) = hash(Int64(x), h)