Y
Hacker News
new
|
ask
|
show
|
jobs
by
tzs
760 days ago
Note that this gives 0 when x == O. For applications where you need the largest power of 2 that divides x because you are going to actually divide x by that you may want to check for 0 first.