Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
undefined | Better HN
0 points
cksk
9y ago
0 comments
Share
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?
0 comments
default
newest
oldest
pklausler
9y ago
x -= N & -(x >= N);
cksk
OP
9y ago
Ohh, nice, I get it now. Thanks a lot!
j
/
k
navigate · click thread line to collapse