-
-
Notifications
You must be signed in to change notification settings - Fork 30.6k
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
isPowerOfTwo
algos don't specify their ranges
#889
Comments
@Rudxain I want to fix this issue can you assign it to me ..... |
Wait I realized there's a bigger Issue. The bitwise |
@Yash-Var I've already opened a PR. If you want to contribute you can send PRs to my fork, or open an independent PR that solves this Issue in a different way |
Neither the README nor the src files explicitly say that the bitwise approach is only correct for 32bit ints. The way it's worded implies that the bitwise approach is always better, but the "naive" approach is the most mathematically correct, it even handles
NaN
andInfinity
correctly! Why isn't there a clarification?The text was updated successfully, but these errors were encountered: