def choose_result_int(*inputs):
    """
    Choose the integer result type for an operation on integer inputs,
    according to the integer typing NBEP.
    """
    bitwidth = choose_result_bitwidth(*inputs)
    signed = any(tp.signed for tp in inputs)
    return types.Integer.from_bitwidth(bitwidth, signed)

    Choose the integer result type for an operation on integer inputs,
    according to the integer typing NBEP.
    
numba/core/typing/old_builtins.py