File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 467467The highest value of `x` which does not result in an overflow when evaluating `T(10)^x`. For
468468types of `T` that do not overflow -1 will be returned.
469469"""
470- function max_exp10 (:: Type{T} ) where {T <: Integer }
470+ Base . @pure function max_exp10 (:: Type{T} ) where {T <: Integer }
471471 W = widen (T)
472472 type_max = W (typemax (T))
473473
@@ -484,7 +484,7 @@ function max_exp10(::Type{T}) where {T <: Integer}
484484end
485485
486486max_exp10 (:: Type{BigInt} ) = - 1
487- @eval max_exp10 (:: Type{Int128} ) = $ (max_exp10 (Int128)) # Freeze this, since it's not getting Const folded.
487+ # @eval max_exp10(::Type{Int128}) = $(max_exp10(Int128)) # Freeze this, since it's not getting Const folded.
488488
489489"""
490490 coefficient(::Type{FD{T, f}}) -> T
You can’t perform that action at this time.
0 commit comments