Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
pcordes
on Aug 22, 2017
|
parent
|
context
|
favorite
| on:
Why is this C++ code faster than my hand-written a...
Nice. It seems gcc/clang don't know that trick. They still divide and then check that x/3 * 3 == x.
https://godbolt.org/g/V4kfuu
. (So do ICC17 and MSVC CL19).
Consider applying for YC's Spring batch! Applications are open till Feb 11.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: