Function xed_sys::xed_interface::xed_shortest_width_signed [] [src]

pub unsafe extern "C" fn xed_shortest_width_signed(
    x: i64,
    legal_widths: u8
) -> xed_uint_t

returns the number of bytes required to store the SIGNED number x given a mask of legal lengths. For the legal_widths argument, bit 0 implies 1 byte is a legal return width, bit 1 implies that 2 bytes is a legal return width, bit 2 implies that 4 bytes is a legal return width. This returns 8 (indicating 8B) if none of the provided legal widths applies.