Skip to content

[stdlib] BinaryInteger func word(at:) => var words: Words #8984

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 2 commits into from
Apr 25, 2017

Conversation

moiseev
Copy link
Contributor

@moiseev moiseev commented Apr 24, 2017

Adding the words property to BinaryInteger protocol as described by SE-0104.

@moiseev moiseev requested a review from dabrahams April 24, 2017 23:39
@moiseev
Copy link
Contributor Author

moiseev commented Apr 24, 2017

@swift-ci Please test

@swift-ci
Copy link
Contributor

Build failed
Jenkins build - Swift Test Linux Platform
Git Commit - 8fb0b5e
Test requested by - @moiseev

@airspeedswift
Copy link
Member

@swift-ci Please clean test linux platform

@airspeedswift airspeedswift merged commit 13abb9a into swiftlang:master Apr 25, 2017
@moiseev moiseev deleted the parole branch April 25, 2017 18:17
@@ -1918,6 +1924,18 @@ extension BinaryInteger {
}
#endif

extension BinaryInteger {
// FIXME(integers): inefficient. Should get rid of _word(at:) and
// countRepresentedWords, and make `words` the basic operation.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was thinking about CollectionOfOne<UInt>. But _UIntBuffer<UInt, UInt64> looks like a better solution for 32-bit platforms. Thanks!

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.

4 participants