Searched refs:abs_d (Results 1 - 4 of 4) sorted by relevance

/xsrc/external/mit/MesaLib.old/dist/src/util/
H A Dfast_idiv_by_const.c192 const uint64_t abs_d = (D < 0 ? -D : D); local in function:util_compute_fast_sdiv_info
205 const uint64_t abs_test_numer = tmp - 1 - tmp % abs_d;
210 uint64_t quotient2 = initial_power_of_2 / abs_d;
211 uint64_t remainder2 = initial_power_of_2 % abs_d;
230 if (remainder2 >= abs_d) {
232 remainder2 -= abs_d;
235 /* Keep going as long as (2**exponent) / abs_d <= delta */
236 delta = abs_d - remainder2;
/xsrc/external/mit/MesaLib/dist/src/util/
H A Dfast_idiv_by_const.c192 const uint64_t abs_d = (D < 0 ? -D : D); local in function:util_compute_fast_sdiv_info
205 const uint64_t abs_test_numer = tmp - 1 - tmp % abs_d;
210 uint64_t quotient2 = initial_power_of_2 / abs_d;
211 uint64_t remainder2 = initial_power_of_2 % abs_d;
230 if (remainder2 >= abs_d) {
232 remainder2 -= abs_d;
235 /* Keep going as long as (2**exponent) / abs_d <= delta */
236 delta = abs_d - remainder2;
/xsrc/external/mit/MesaLib.old/dist/src/compiler/nir/
H A Dnir_opt_idiv_const.c68 uint64_t abs_d = d < 0 ? -d : d; local in function:build_idiv
76 } else if (util_is_power_of_two_or_zero64(abs_d)) {
78 nir_imm_int(b, util_logbase2_64(abs_d)));
/xsrc/external/mit/MesaLib/dist/src/compiler/nir/
H A Dnir_opt_idiv_const.c72 uint64_t abs_d = d < 0 ? -d : d; local in function:build_idiv
80 } else if (util_is_power_of_two_or_zero64(abs_d)) {
81 nir_ssa_def *uq = nir_ushr_imm(b, nir_iabs(b, n), util_logbase2_64(abs_d));

Completed in 4 milliseconds