Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
ot
on July 26, 2011
|
parent
|
context
|
favorite
| on:
Ten Ways to Check if an Integer Is a Power Of Two ...
2^(bitsize) == 2^(bitsize)
If you meant 1 << (bitsize), that's undefined behaviour in C
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
If you meant 1 << (bitsize), that's undefined behaviour in C