mirror of
https://github.com/apple/swift-numerics
synced 2026-11-28 05:14:31 +00:00
[BigInt] Move the BinaryInteger methods
This commit is contained in:
1 parent
acd8568864
commit
5be3b4e526
1 file changed
+3
-3
@@ -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))
|
||||
|
||||
Reference in new issue
Block a user