diff --git a/src/FixedPointDecimals.jl b/src/FixedPointDecimals.jl index 8aec0fb..f02f4c6 100644 --- a/src/FixedPointDecimals.jl +++ b/src/FixedPointDecimals.jl @@ -490,6 +490,9 @@ function max_exp10(::Type{T}) where {T <: Integer} end max_exp10(::Type{BigInt}) = -1 +# Freeze the evaluation for Int128, since max_exp10(Int128) is too compilicated to get +# optimized away by the compiler during const-folding. +@eval max_exp10(::Type{Int128}) = $(max_exp10(Int128)) """ coefficient(::Type{FD{T, f}}) -> T