Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
sharth
on July 26, 2011
|
parent
|
context
|
favorite
| on:
Ten Ways to Check if an Integer Is a Power Of Two ...
Use popcount?
return _mm_popcnt_u64(x) < 2;
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
return _mm_popcnt_u64(x) < 2;