Skip to content

Add shift operations on BitSet #41

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

Closed
linasm opened this issue Aug 14, 2019 · 1 comment
Closed

Add shift operations on BitSet #41

linasm opened this issue Aug 14, 2019 · 1 comment

Comments

@linasm
Copy link
Contributor

linasm commented Aug 14, 2019

Add bitwise shift (<< and >>) operations to BitSet collection.
Motivation:

Note: << can be emulated with .map(_ + shiftBy) and >> with .collect { case b if b >= shiftBy => b - shiftBy }, but performance difference is two orders of magnitude.

I have some existing code for it, will be able to submit a PR soon.

@linasm
Copy link
Contributor Author

linasm commented Aug 20, 2019

Solved in #43.

@linasm linasm closed this as completed Aug 20, 2019
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

No branches or pull requests

1 participant