Lines Matching refs:end

71 __gen_mbo(uint32_t start, uint32_t end)
73 return (~0ull >> (64 - (end - start + 1))) << start;
77 __gen_uint(uint64_t v, uint32_t start, NDEBUG_UNUSED uint32_t end)
82 const int width = end - start + 1;
93 __gen_uint_nonzero(uint64_t v, uint32_t start, uint32_t end)
96 return __gen_uint(v, start, end);
100 __gen_sint(int64_t v, uint32_t start, uint32_t end)
102 const int width = end - start + 1;
120 __gen_sint_nonzero(int64_t v, uint32_t start, uint32_t end)
123 return __gen_sint(v, start, end);
127 __gen_offset(uint64_t v, NDEBUG_UNUSED uint32_t start, NDEBUG_UNUSED uint32_t end)
131 uint64_t mask = (~0ull >> (64 - (end - start + 1))) << start;
140 __gen_offset_nonzero(uint64_t v, uint32_t start, uint32_t end)
143 return __gen_offset(v, start, end);
149 __attribute__((unused)) uint32_t start, uint32_t end)
152 if (end == 31) {
154 } else if (end < 63) {
155 const unsigned shift = 63 - end;
177 __gen_sfixed(float v, uint32_t start, uint32_t end, uint32_t fract_bits)
184 const float max = ((1 << (end - start)) - 1) / factor;
185 const float min = -(1 << (end - start)) / factor;
190 const uint64_t mask = ~0ull >> (64 - (end - start + 1));
196 __gen_sfixed_nonzero(float v, uint32_t start, uint32_t end, uint32_t fract_bits)
199 return __gen_sfixed(v, start, end, fract_bits);
203 __gen_ufixed(float v, uint32_t start, NDEBUG_UNUSED uint32_t end, uint32_t fract_bits)
210 const float max = ((1 << (end - start + 1)) - 1) / factor;
221 __gen_ufixed_nonzero(float v, uint32_t start, uint32_t end, uint32_t fract_bits)
224 return __gen_ufixed(v, start, end, fract_bits);
261 self.end = int(attrs["end"])
265 assert self.start <= self.end, \
266 'field {} has end ({}) < start ({})'.format(self.name, self.end,
269 assert self.end == self.start, \
316 elif self.type == 'uint' and self.end - self.start > 32:
388 clone.end = clone.end + start
400 while index < (start + field.end) // 32:
412 # that, since that'll account for MBZ dwords at the end of a group
490 (field.start - dword_start, field.end - dword_start))
497 (nz, name, field.start - dword_start, field.end - dword_start))
500 (nz, name, field.start - dword_start, field.end - dword_start))
503 (nz, name, field.start - dword_start, field.end - dword_start))
506 (nz, name, field.start - dword_start, field.end - dword_start))
511 (nz, name, field.start - dword_start, field.end - dword_start))
514 (nz, name, field.start - dword_start, field.end - dword_start, field.fractional_size))
517 (nz, name, field.start - dword_start, field.end - dword_start, field.fractional_size))
520 (index, field_index, field.start - dword_start, field.end - dword_start))
533 dw.address.start - dword_start, dw.address.end - dword_start))
540 dw.address.start - dword_start, dw.address.end - dword_start))