Hacker News new | ask | show | jobs
by cksk 3476 days ago
OK, my bit twiddling knowledge is weak, my google skills are weaker still, and now I'm curious: what does "AND with a two's complement of the condition" mean, exactly?
1 comments

x -= N & -(x >= N);
Ohh, nice, I get it now. Thanks a lot!