We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 841f015 commit d0cbd89Copy full SHA for d0cbd89
stdlib/public/core/Int128.swift.gyb
@@ -715,8 +715,12 @@ private func _wideDivide32<F: FixedWidthInteger & UnsignedInteger>(
715
) -> (quotient: F, remainder: _Wide2<F>) {
716
// The following invariants are guaranteed to hold by dividingFullWidth or
717
// quotientAndRemainder before this function is invoked:
718
+ #if !$Embedded
719
+ // TODO: Investigate why this fails to compile in embedded Swift with
720
+ // assertions off
721
_internalInvariant(lhs.high != F.zero)
722
_internalInvariant(rhs.high.leadingZeroBitCount == 0)
723
+ #endif
724
_internalInvariant((high: lhs.high, low: lhs.mid) < rhs)
725
726
// Estimate the quotient with a 2/1 division using just the top digits.
0 commit comments