alt
Hacker News
misev
•
today at 4:12 PM
•
0 replies
•
view on HN
You could rewrite it to
int* ptr = ((v != 0) * lwr) + ((v == 0) * rwr);
I doubt it would be faster than the ternary though.