Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
mansr
on Sept 14, 2010
|
parent
|
context
|
favorite
| on:
Why C Is Not Assembly
What you are doing there is multiplying something by a power of two, and 'ar' should have the value 1 for 'sr' to be set to two to the power of 10.
Multiplying by a power of 2 is easily done in C using the shift operator.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
Multiplying by a power of 2 is easily done in C using the shift operator.