Searched refs:UINT_BITS (Results 1 - 4 of 4) sorted by relevance
| /xsrc/external/mit/MesaLib.old/dist/src/util/ |
| H A D | fast_idiv_by_const.c | 46 util_compute_fast_udiv_info(uint64_t D, unsigned num_bits, unsigned UINT_BITS) argument 49 assert(num_bits > 0 && num_bits <= UINT_BITS); 60 result.multiplier = 1ull << (UINT_BITS - div_shift); 68 result.multiplier = UINT_BITS == 64 ? UINT64_MAX : 69 (1ull << UINT_BITS) - 1; 77 /* The extra shift implicit in the difference between UINT_BITS and num_bits 79 const unsigned extra_shift = UINT_BITS - num_bits; 84 const uint64_t initial_power_of_2 = (uint64_t)1 << (UINT_BITS-1); 164 UINT_BITS);
|
| H A D | fast_idiv_by_const.h | 75 * integer D. UINT_BITS is the bit size at which the final "magic" 78 * is known to be smaller than calc_bits; if this is not known then UINT_BITS 81 * Assume we have a hardware register of width UINT_BITS, a known constant D 83 * (which may be up to UINT_BITS). To emit code for n/d, use one of the two 89 * emit("result = (m.multiplier * n) >>> UINT_BITS") 98 * emit("result >>>= UINT_BITS") 101 * This second version works even if D is 1. The shifts by UINT_BITS may be 105 * if n == (1 << UINT_BITS)-1: result = n 127 util_compute_fast_udiv_info(uint64_t D, unsigned num_bits, unsigned UINT_BITS);
|
| /xsrc/external/mit/MesaLib/dist/src/util/ |
| H A D | fast_idiv_by_const.c | 47 util_compute_fast_udiv_info(uint64_t D, unsigned num_bits, unsigned UINT_BITS) argument 50 assert(num_bits > 0 && num_bits <= UINT_BITS); 61 result.multiplier = 1ull << (UINT_BITS - div_shift); 69 result.multiplier = u_uintN_max(UINT_BITS); 77 /* The extra shift implicit in the difference between UINT_BITS and num_bits 79 const unsigned extra_shift = UINT_BITS - num_bits; 84 const uint64_t initial_power_of_2 = (uint64_t)1 << (UINT_BITS-1); 164 UINT_BITS);
|
| H A D | fast_idiv_by_const.h | 75 * integer D. UINT_BITS is the bit size at which the final "magic" 78 * is known to be smaller than calc_bits; if this is not known then UINT_BITS 81 * Assume we have a hardware register of width UINT_BITS, a known constant D 83 * (which may be up to UINT_BITS). To emit code for n/d, use one of the two 89 * emit("result = (m.multiplier * n) >>> UINT_BITS") 98 * emit("result >>>= UINT_BITS") 101 * This second version works even if D is 1. The shifts by UINT_BITS may be 105 * if n == (1 << UINT_BITS)-1: result = n 127 util_compute_fast_udiv_info(uint64_t D, unsigned num_bits, unsigned UINT_BITS);
|
Completed in 3 milliseconds