Lines Matching refs:width
100 int width;
172 /* Return the total width of the operand *OPERAND. */
177 unsigned width = 0;
179 width += fields[operand->fields[i++]].width;
180 assert (width > 0 && width < 32);
181 return width;
214 /* Generate a mask that has WIDTH number of consecutive 1s. */
217 gen_mask (int width)
219 return ((aarch64_insn) 1 << width) - 1;
224 gen_sub_field (enum aarch64_field_kind kind, int lsb_rel, int width, aarch64_field *ret)
227 if (lsb_rel < 0 || width <= 0 || lsb_rel + width > field->width)
230 ret->width = width;
241 assert (field->width < 32 && field->width >= 1 && field->lsb >= 0
242 && field->lsb + field->width <= 32);
243 value &= gen_mask (field->width);
261 value = (code >> field->lsb) & gen_mask (field->width);