37 # define _XED_STATE_H_
156 (void)arg_addr_width;
static XED_INLINE void xed_state_init2(xed_state_t *p, xed_machine_mode_enum_t arg_mmode, xed_address_width_enum_t arg_stack_addr_width)
Constructor.
static XED_INLINE void xed_state_set_machine_mode(xed_state_t *p, xed_machine_mode_enum_t arg_mode)
Set the machine mode which corresponds to the default data operand size.
XED_DLL_EXPORT int xed_state_print(const xed_state_t *p, char *buf, int buflen)
struct xed_state_s xed_state_t
Encapsulates machine modes for decoder/encoder requests.
static XED_INLINE void xed_state_set_address_width(xed_state_t *p, xed_address_width_enum_t arg_addr_width)
Set the address width.
xed_address_width_enum_t stack_addr_width
for 16b/32b modes
static XED_INLINE xed_bool_t xed_state_mode_width_16(const xed_state_t *p)
static XED_INLINE xed_address_width_enum_t xed_state_get_address_width(const xed_state_t *p)
return the address width
Encapsulates machine modes for decoder/encoder requests.
static XED_INLINE xed_bool_t xed_state_real_mode(const xed_state_t *p)
static XED_INLINE xed_address_width_enum_t xed_state_get_stack_address_width(const xed_state_t *p)
Return the STACK address width.
static XED_INLINE void xed_state_zero(xed_state_t *p)
clear the xed_state_t
static XED_INLINE xed_bool_t xed_state_mode_width_32(const xed_state_t *p)
static XED_INLINE void xed_state_init(xed_state_t *p, xed_machine_mode_enum_t arg_mmode, xed_address_width_enum_t arg_ignored, xed_address_width_enum_t arg_stack_addr_width)
Constructor.
static XED_INLINE xed_machine_mode_enum_t xed_state_get_machine_mode(const xed_state_t *p)
return the machine mode
static XED_INLINE xed_bool_t xed_state_long64_mode(const xed_state_t *p)
true iff the machine is in LONG_64 mode
static XED_INLINE void xed_state_set_stack_address_width(xed_state_t *p, xed_address_width_enum_t arg_addr_width)
set the STACK address width
xed_machine_mode_enum_t mmode
real architected machine modes