Function xed_sys::xed_shortest_width_unsigned[][src]

pub unsafe extern "C" fn xed_shortest_width_unsigned(
    x: u64,
    legal_widths: u8
) -> xed_uint_t
Expand description

returns the number of bytes required to store the UNSIGNED 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.