not rax
inc rax
neg rax
See explanation
This snippet is equivalent to.. doing nothing.
not
flips all the bits, which is equivalent to doing the
one's complement
of a number.
inc
increments by one.
not
does the
two's complement.
In practice a two's complement is equivalent to a one's complement + 1, so the last operation neutralizes the first two.