Skip to content

Commit

Permalink
v2.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
oscbyspro committed May 8, 2023
1 parent 74ea246 commit 4e141eb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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])

Expand Down
2 changes: 1 addition & 1 deletion Sources/ANKFoundation/ANKBinaryInteger.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions Sources/ANKFullWidthKit/ANKFullWidth+Division+Digit.swift
Original file line number Diff line number Diff line change
Expand Up @@ -98,15 +98,15 @@ extension ANKFullWidth where High == High.Magnitude {
}
//=--------------------------------------=
var remainder = UInt()
//=--------------------------------------=

self.withUnsafeMutableWords { SELF in
var index: Int = SELF.endIndex
backwards: while index != SELF.startIndex {
(SELF.formIndex(before: &index))
(SELF[index], remainder) = divisor.dividingFullWidth(HL(remainder, SELF[index]))
}
}
//=--------------------------------------=

return PVO(remainder, false)
}
}

0 comments on commit 4e141eb

Please sign in to comment.