Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
cksk
· 9y ago · 0 comments
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?
Comments
[–]
pklausler
9y ago
x -= N & -(x >= N);
[–]
cksk
OP
9y ago
Ohh, nice, I get it now. Thanks a lot!