move signed/unsigned conversion functions to util/bit_operators