[BigInt] Move the BinaryInteger methods

This commit is contained in:
Ben Rimmington committed 2020-01-14 02:38:53 +00:00
1 parent acd8568864
commit 5be3b4e526
1 file changed
+3 -3
+3 -3
View File
@@ -490,9 +490,6 @@ extension BigInt: BinaryInteger {
BigInt._dropExcessWords(words: &lhs.words)
}
}
extension BigInt {
@inlinable
public func quotientAndRemainder(dividingBy rhs: BigInt) -> (quotient: BigInt, remainder: BigInt) {
@@ -509,6 +506,9 @@ extension BigInt {
return 1
}
}
extension BigInt {
private static func findQhat(high: UInt, low: UInt.Magnitude, divisor: UInt, nextVdigit: UInt, nextUdigit: UInt) -> UInt {
var (qhat, rhat) = divisor.dividingFullWidth((high, low))