Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
mansr
on Oct 14, 2011
|
parent
|
context
|
favorite
| on:
What is your favourite C programming trick?
And if it is not a power of 2, the % operation will be anything but fast. If a size not a power of 2 is strictly required, a simple increment and compare is almost certainly faster.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: