2 ms·
Even in C bit twiddling, I'd write x & ~n rather than x &~ n The former is much easier to parse (at least to me). ~ is a unary operator, so it's easy t
by AnimalMuppet 7y ago
Even in C bit twiddling, I'd write
x & ~n
rather than
x &~ n
The former is much easier to parse (at least to me). ~ is a unary operator, so it's easy to think of ~n as one thing. But &~ is two operators, which I think of as two things, not as one (even if the combination is common).