diff --git a/base/float.jl b/base/float.jl index 3ea45fd140176..eb30c087c0f8c 100644 --- a/base/float.jl +++ b/base/float.jl @@ -687,7 +687,7 @@ function hash(x::Real, h::UInt) # handle values representable as Int64, UInt64, Float64 if den == 1 - left = top_set_bit(num) + pow + left = ndigits0z(num,2) + pow right = trailing_zeros(num) + pow if -1074 <= right if 0 <= right && left <= 64