Hacker News new | past | comments | ask | show | jobs | submit login

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: