Hacker News new | ask | show | jobs
by JoeAltmaier 760 days ago
Carry. -x is ~x (not x) PLUS ONE

It's that carry that ripples through, making bits flip until it gets to that 'largest power of 2'