Skip to content

[swift-4.0-branch][stdlib] Implement BinaryInteger.words #11156

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
Jul 26, 2017

Conversation

moiseev
Copy link
Contributor

@moiseev moiseev commented Jul 24, 2017

  • Explanation: Implements words property on integer types as part of SE-0104 implementation.
  • Scope of Issue: Removes the underscored APIs and instead implements the words collection properly.
  • Risk: Minimal
  • Reviewed By: Dave Abrahams
  • Testing: Automated test suite
  • Directions for QA: N/A
  • Radar: rdar://problem/33292169

lorentey added 9 commits July 24, 2017 16:53
Removes BinaryInteger's _word(at:) requirement and its
countOfRepresentedWords property, making the words property the
sole way to access an integer's words.

This is a better fix for https://bugs.swift.org/browse/SR-5275.

(cherry picked from commit c8d4fd4)
(cherry picked from commit 6ae2040)
(cherry picked from commit 826f8da)
We don’t need Words’ members to be @_transparent;
simple conversions use _lowWord instead.

(cherry picked from commit e975445)
This fixes integer conversion issues on 32-bit platforms.

(cherry picked from commit 735fe97)
This adds 8 more collection views, but makes integer definitions
more consistent across all the available bit widths and
between 32-bit and 64-bit platforms.

(cherry picked from commit 9996d07)
@moiseev
Copy link
Contributor Author

moiseev commented Jul 24, 2017

@swift-ci Please test

@moiseev
Copy link
Contributor Author

moiseev commented Jul 24, 2017

@swift-ci Please Test Source Compatibility

@moiseev
Copy link
Contributor Author

moiseev commented Jul 24, 2017

/cc @lorentey, @airspeedswift

@moiseev moiseev merged commit 796cfdf into swiftlang:swift-4.0-branch Jul 26, 2017
@moiseev moiseev deleted the binary-integer-words-4 branch July 26, 2017 17:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants