def signed_hex_string(_arch, v):
    """ For a given integer value, return the architecture specific hexadecimal representation. """
    sign_char = ""
    if v < 0:
        sign_char = "-"
        v = -v
    return sign_char + _arch.constant_hexadecimal_prefix + ("%x" % v) + _arch.constant_hexadecimal_suffix