We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eaffc71 commit 08fdf0aCopy full SHA for 08fdf0a
base/float.jl
@@ -691,7 +691,7 @@ function hash(x::Real, h::UInt)
691
# If the real is an Int64, UInt64, or Float64, hash as those types.
692
# To be an Integer the denominator must be 1 and the power must be non-negative.
693
if den == 1
694
- # left = ceil(log2(num)*2^pow)
+ # left = ceil(log2(num*2^pow))
695
left = top_set_bit(abs(num)) + pow
696
# 2^-1074 is the minimum Float64 so if the power is smaller, not a Float64
697
if -1074 <= pow
0 commit comments