swift
7d3b2576 - [stdlib] Minor clean-up and new fast path for larger (e.g. 128-bit) integer printing (#85404)

Commit
56 days ago
[stdlib] Minor clean-up and new fast path for larger (e.g. 128-bit) integer printing (#85404) A follow-up to #85180. First, make the guarantee that our Swift-native implementation of integer-to-ASCII conversion always fills the _suffix_ of the given mutable span. (Some minor swift-format corrections interspersed.) Then, use that guarantee to work in 64-bit (or rather, for most bases, 56-bit) chunks for larger integers. <!-- If this pull request is targeting a release branch, please fill out the following form: https://github.com/swiftlang/.github/blob/main/PULL_REQUEST_TEMPLATE/release.md?plain=1 Otherwise, replace this comment with a description of your changes and rationale. Provide links to external references/discussions if appropriate. If this pull request resolves any GitHub issues, link them like so: Resolves <link to issue>, resolves <link to another issue>. For more information about linking a pull request to an issue, see: https://docs.github.com/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue --> <!-- Before merging this pull request, you must run the Swift continuous integration tests. For information about triggering CI builds via @swift-ci, see: https://github.com/apple/swift/blob/main/docs/ContinuousIntegration.md#swift-ci Thank you for your contribution to Swift! -->
Author
xwu xwu
Parents
Loading