Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
on July 26, 2011
|
parent
|
context
|
favorite
| on:
Ten Ways to Check if an Integer Is a Power Of Two ...
[deleted]
tedunangst
on July 26, 2011
[–]
All of the loops could be written recursively, but that'd be rather atypical for solving this problem in C.
eru
on July 26, 2011
|
parent
[–]
Though with gcc and tail recursion it wouldn't make a difference to the generated code.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: