From 5be3b4e5263baca3457a804d63f0c9098f02db06 Mon Sep 17 00:00:00 2001 From: Ben Rimmington Date: Tue, 14 Jan 2020 02:38:53 +0000 Subject: [PATCH] [BigInt] Move the BinaryInteger methods --- Sources/BigInt/BigInt.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Sources/BigInt/BigInt.swift b/Sources/BigInt/BigInt.swift index badfd7d..c3af628 100644 --- a/Sources/BigInt/BigInt.swift +++ b/Sources/BigInt/BigInt.swift @@ -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))