Skip to content

Commit ec1115d

Browse files
oscardssmithKristofferC
authored andcommitted
remove unnecessary edge from exp_impl to pow (#58062)
This was just intended to be a constant and we have binary Float64 constants (cherry picked from commit f3474b5)
1 parent ee8dd0f commit ec1115d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

base/special/exp.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ end
224224
twopk = (k + UInt64(53)) << 52
225225
return reinterpret(T, twopk + reinterpret(UInt64, small_part))*0x1p-53
226226
end
227-
#k == 1024 && return (small_part * 2.0) * 2.0^1023
227+
#k == 1024 && return (small_part * 2.0) * 0x1p1023
228228
end
229229
twopk = Int64(k) << 52
230230
return reinterpret(T, twopk + reinterpret(Int64, small_part))
@@ -252,7 +252,7 @@ end
252252
twopk = (k + UInt64(53)) << 52
253253
return reinterpret(T, twopk + reinterpret(UInt64, small_part))*0x1p-53
254254
end
255-
k == 1024 && return (small_part * 2.0) * 2.0^1023
255+
k == 1024 && return (small_part * 2.0) * 0x1p1023
256256
end
257257
twopk = Int64(k) << 52
258258
return reinterpret(T, twopk + reinterpret(Int64, small_part))

0 commit comments

Comments
 (0)