Skip to content

Commit 349643c

Browse files
authored
Improve comment for freezing max_exp10(Int128)
1 parent 40d1439 commit 349643c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/FixedPointDecimals.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -484,7 +484,9 @@ function max_exp10(::Type{T}) where {T <: Integer}
484484
end
485485

486486
max_exp10(::Type{BigInt}) = -1
487-
@eval max_exp10(::Type{Int128}) = $(max_exp10(Int128)) # Freeze this, since it's not getting Const folded.
487+
# Freeze the evaluation for Int128, since max_exp10(Int128) is too compilicated to get
488+
# optimized away by the compiler during const-folding.
489+
@eval max_exp10(::Type{Int128}) = $(max_exp10(Int128))
488490

489491
"""
490492
coefficient(::Type{FD{T, f}}) -> T

0 commit comments

Comments
 (0)