3 ms·
It's just regular unreadable code. ~ and - are both prefix operators: bitwise complement and negation, respectively. With two's-complement arithmetic, "comple
by dllthomas 11y ago
It's just regular unreadable code. ~ and - are both prefix operators: bitwise complement and negation, respectively. With two's-complement arithmetic, "complement then negate" adds one while "negate then complement" subtracts one.
- Gibbon1 11y agoI got that feeling again when I was trying to learn 6502 assembly. Amusingly at least in gcc #\\ this appears legal