We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The following models can and/or should implement isPowerOf2.
isPowerOf2
I want at least Count/isPowerOf2 for documentation purposes.
Count/isPowerOf2
The text was updated successfully, but these errors were encountered:
Also, this expression is faster than bit-counting (for small systems integers):
(x > 0) && (x & (x &- 1) == 0)
Sorry, something went wrong.
Add: Count/isPowerOf2 (#109).
3379092
No branches or pull requests
The following models can and/or should implement
isPowerOf2
.I want at least
Count/isPowerOf2
for documentation purposes.The text was updated successfully, but these errors were encountered: