Lines Matching refs:dist
93 * \brief Shifts 'a' right by the number of bits given in 'dist', which must be in
101 uint64_t _mesa_short_shift_right_jam64(uint64_t a, uint8_t dist)
103 return a >> dist | ((a & (((uint64_t) 1 << dist) - 1)) != 0);
107 * \brief Shifts 'a' right by the number of bits given in 'dist', which must not
111 * The value of 'dist' can be arbitrarily large. In particular, if 'dist' is
118 uint64_t _mesa_shift_right_jam64(uint64_t a, uint32_t dist)
121 (dist < 63) ? a >> dist | ((uint64_t) (a << (-dist & 63)) != 0) : (a != 0);
125 * \brief Shifts 'a' right by the number of bits given in 'dist', which must not be
129 * The value of 'dist' can be arbitrarily large. In particular, if 'dist' is
136 uint32_t _mesa_shift_right_jam32(uint32_t a, uint16_t dist)
139 (dist < 31) ? a >> dist | ((uint32_t) (a << (-dist & 31)) != 0) : (a != 0);
230 * bits given in 'dist', where N = 'size_words' * 32. The value of 'dist'
240 _mesa_short_shift_left_m(uint8_t size_words, const uint32_t *a, uint8_t dist, uint32_t *m_out)
246 neg_dist = -dist;
249 part_word = a[index] << dist;
254 part_word = a_word << dist;
261 * bits given in 'dist', where N = 'size_words' * 32. The value of 'dist'
266 * integer. The value of 'dist' can be arbitrarily large. In particular, if
267 * 'dist' is greater than N, the stored result will be 0.
272 _mesa_shift_left_m(uint8_t size_words, const uint32_t *a, uint32_t dist, uint32_t *m_out)
278 word_dist = dist >> 5;
281 inner_dist = dist & 31;
308 * bits given in 'dist', where N = 'size_words' * 32. The value of 'dist'
318 _mesa_short_shift_right_m(uint8_t size_words, const uint32_t *a, uint8_t dist, uint32_t *m_out)
324 neg_dist = -dist;
327 part_word = a[index] >> dist;
332 part_word = a_word >> dist;
339 * bits given in 'dist', where N = 'size_words' * 32. The value of 'dist'
351 _mesa_short_shift_right_jam_m(uint8_t size_words, const uint32_t *a, uint8_t dist, uint32_t *m_out)
357 neg_dist = -dist;
361 part_word = a_word >> dist;
362 if (part_word << dist != a_word )
368 part_word = a_word >> dist;
375 * bits given in 'dist', where N = 'size_words' * 32. The value of 'dist'
382 * 'dist' can be arbitrarily large. In particular, if 'dist' is greater than
389 _mesa_shift_right_jam_m(uint8_t size_words, const uint32_t *a, uint32_t dist, uint32_t *m_out)
395 word_dist = dist >> 5;
412 inner_dist = dist & 31;