Most readers will be familiar with -x = ~x + 1 = ~(x - 1).
Ah. I thought that said “–x = –x+1” instead of “–x = ~x + 1”.
Ah. I thought that said “–x = –x+1” instead of “–x = ~x + 1”.