322
322
323
323
# For bootstrapping purposes, we define div for integers directly. Provide the
324
324
# generic signature also
325
- div (a:: T , b:: T , :: typeof (RoundToZero)) where {T<: Union{BitSigned, BitUnsigned64 } } = div (a, b)
325
+ div (a:: T , b:: T , :: typeof (RoundToZero)) where {T<: Union{BitSigned, BitUnsigned } } = div (a, b)
326
326
div (a:: Bool , b:: Bool , r:: RoundingMode ) = div (a, b)
327
327
# Prevent ambiguities
328
328
for rm in (RoundUp, RoundDown, RoundToZero, RoundFromZero)
@@ -335,10 +335,6 @@ function div(x::Bool, y::Bool, rnd::Union{typeof(RoundNearest),
335
335
end
336
336
fld (a:: T , b:: T ) where {T<: Union{Integer,AbstractFloat} } = div (a, b, RoundDown)
337
337
cld (a:: T , b:: T ) where {T<: Union{Integer,AbstractFloat} } = div (a, b, RoundUp)
338
- div (a:: Int128 , b:: Int128 , :: typeof (RoundToZero)) = div (a, b)
339
- div (a:: UInt128 , b:: UInt128 , :: typeof (RoundToZero)) = div (a, b)
340
- rem (a:: Int128 , b:: Int128 , :: typeof (RoundToZero)) = rem (a, b)
341
- rem (a:: UInt128 , b:: UInt128 , :: typeof (RoundToZero)) = rem (a, b)
342
338
343
339
# These are kept for compatibility with external packages overriding fld / cld.
344
340
# In 2.0, packages should extend div(a, b, r) instead, in which case, these can
0 commit comments