Skip to content
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

get top bit set? #86

Open
yonderblue opened this issue Mar 19, 2021 · 3 comments
Open

get top bit set? #86

yonderblue opened this issue Mar 19, 2021 · 3 comments

Comments

@yonderblue
Copy link

Is there no way to get the top bit but to iterate from set.Len()-1 down and set.Test?

@lemire
Copy link
Member

lemire commented Mar 19, 2021

You can call the Test functions on all bits, irrespective of its index.

Please elaborate. Providing a code sample would be a good way to communicate your issue.

@yonderblue
Copy link
Author

Looking closer now I think I was looking for a reverse NextSet. My use is not super performant so iterating Test backwards from Len-1 is working well. Thanks!

@lemire
Copy link
Member

lemire commented Mar 20, 2021

Your issue is valid and easily implemented. I have re-titled it.

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

2 participants