Y
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
pklausler
3476 days ago
x -= N & -(x >= N);
link
cksk
3476 days ago
Ohh, nice, I get it now. Thanks a lot!
link