Table of Contents
to_twos_comp
twos_comp
compute the 2’s complement of val.
val (int) – the value to compute the two’s complement for
bits (int) – size of val in bits