Skip to content

Commit dfd41b1

Browse files
committed
Comments
1 parent 4e53f3d commit dfd41b1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/fldmod-by-const.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ end
3030
return x - quotient * y
3131
end
3232

33+
# This function is based on the native code produced by the following:
34+
# @code_native ((x)->div(x, 100))(Int64(2))
3335
function div_by_const(x::T, ::Val{C}) where {T, C}
3436
# These checks will be compiled away during specialization.
3537
# While for `*(FixedDecimal, FixedDecimal)`, C will always be a power of 10, these

0 commit comments

Comments
 (0)