diff --git a/README.md b/README.md index c5da3a1f..51c90c90 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ Large number arithmetic in Swift. | Package | Swift | iOS | iPadOS | Mac Catalyst | macOS | tvOS | watchOS | |:-------:|:-----:|:----:|:------:|:------------:|:-----:|:----:|:-------:| | 0.6.2 | 5.7 | 13.0 | 13.0 | 13.0 | 10.15 | 13.0 | 6.0 | -| 2.1.0 | 5.8 | 16.4 | 16.4 | 16.4 | 13.3 | 16.4 | 9.4 | +| 2.2.0 | 5.8 | 16.4 | 16.4 | 16.4 | 13.3 | 16.4 | 9.4 | ## [ANKFullWidthKit][FUL/D] ([Sources][FUL/S], [Tests][FUL/T], [Benchmarks][FUL/B]) diff --git a/Sources/ANKFoundation/ANKBinaryInteger.swift b/Sources/ANKFoundation/ANKBinaryInteger.swift index f79ac941..25a95bc4 100644 --- a/Sources/ANKFoundation/ANKBinaryInteger.swift +++ b/Sources/ANKFoundation/ANKBinaryInteger.swift @@ -79,7 +79,7 @@ BinaryInteger, Sendable where Magnitude: ANKUnsignedInteger, Words: Sendable { /// self < other ? -1 : self == other ? 0 : 1 /// ``` /// - /// The return value also be thought of as the ``signum()`` of the difference: + /// The return value can also be thought of as the ``signum()`` of the difference: /// /// ```swift /// (self - other).signum() // without errors diff --git a/Sources/ANKFullWidthKit/ANKFullWidth+Division+Digit.swift b/Sources/ANKFullWidthKit/ANKFullWidth+Division+Digit.swift index b3f50ed7..5b02514f 100644 --- a/Sources/ANKFullWidthKit/ANKFullWidth+Division+Digit.swift +++ b/Sources/ANKFullWidthKit/ANKFullWidth+Division+Digit.swift @@ -98,7 +98,7 @@ extension ANKFullWidth where High == High.Magnitude { } //=--------------------------------------= var remainder = UInt() - //=--------------------------------------= + self.withUnsafeMutableWords { SELF in var index: Int = SELF.endIndex backwards: while index != SELF.startIndex { @@ -106,7 +106,7 @@ extension ANKFullWidth where High == High.Magnitude { (SELF[index], remainder) = divisor.dividingFullWidth(HL(remainder, SELF[index])) } } - //=--------------------------------------= + return PVO(remainder, false) } }