From 4e141ebbd9424d0331db88019c6e6992a0bdf5ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oscar=20Bystr=C3=B6m=20Ericsson?= Date: Mon, 8 May 2023 12:21:54 +0200 Subject: [PATCH] v2.2.0 --- README.md | 2 +- Sources/ANKFoundation/ANKBinaryInteger.swift | 2 +- Sources/ANKFullWidthKit/ANKFullWidth+Division+Digit.swift | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) 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) } }