Lines Matching refs:attr
111 static inline int inat_is_legacy_prefix(insn_attr_t attr)
113 attr &= INAT_PFX_MASK;
114 return attr && attr <= INAT_LGCPFX_MAX;
117 static inline int inat_is_address_size_prefix(insn_attr_t attr)
119 return (attr & INAT_PFX_MASK) == INAT_PFX_ADDRSZ;
122 static inline int inat_is_operand_size_prefix(insn_attr_t attr)
124 return (attr & INAT_PFX_MASK) == INAT_PFX_OPNDSZ;
127 static inline int inat_is_rex_prefix(insn_attr_t attr)
129 return (attr & INAT_PFX_MASK) == INAT_PFX_REX;
132 static inline int inat_last_prefix_id(insn_attr_t attr)
134 if ((attr & INAT_PFX_MASK) > INAT_LSTPFX_MAX)
137 return attr & INAT_PFX_MASK;
140 static inline int inat_is_vex_prefix(insn_attr_t attr)
142 attr &= INAT_PFX_MASK;
143 return attr == INAT_PFX_VEX2 || attr == INAT_PFX_VEX3;
146 static inline int inat_is_vex3_prefix(insn_attr_t attr)
148 return (attr & INAT_PFX_MASK) == INAT_PFX_VEX3;
151 static inline int inat_is_escape(insn_attr_t attr)
153 return attr & INAT_ESC_MASK;
156 static inline int inat_escape_id(insn_attr_t attr)
158 return (attr & INAT_ESC_MASK) >> INAT_ESC_OFFS;
161 static inline int inat_is_group(insn_attr_t attr)
163 return attr & INAT_GRP_MASK;
166 static inline int inat_group_id(insn_attr_t attr)
168 return (attr & INAT_GRP_MASK) >> INAT_GRP_OFFS;
171 static inline int inat_group_common_attribute(insn_attr_t attr)
173 return attr & ~INAT_GRP_MASK;
176 static inline int inat_has_immediate(insn_attr_t attr)
178 return attr & INAT_IMM_MASK;
181 static inline int inat_immediate_size(insn_attr_t attr)
183 return (attr & INAT_IMM_MASK) >> INAT_IMM_OFFS;
186 static inline int inat_has_modrm(insn_attr_t attr)
188 return attr & INAT_MODRM;
191 static inline int inat_is_force64(insn_attr_t attr)
193 return attr & INAT_FORCE64;
196 static inline int inat_has_second_immediate(insn_attr_t attr)
198 return attr & INAT_SCNDIMM;
201 static inline int inat_has_moffset(insn_attr_t attr)
203 return attr & INAT_MOFFSET;
206 static inline int inat_has_variant(insn_attr_t attr)
208 return attr & INAT_VARIANT;
211 static inline int inat_accept_vex(insn_attr_t attr)
213 return attr & INAT_VEXOK;
216 static inline int inat_must_vex(insn_attr_t attr)
218 return attr & INAT_VEXONLY;