Searched refs:pre_shift (Results 1 - 23 of 23) sorted by relevance

/xsrc/external/mit/MesaLib.old/dist/src/util/
H A Dfast_idiv_by_const.h87 * if m.pre_shift > 0: emit("n >>>= m.pre_shift")
95 * if m.pre_shift > 0: emit("n >>>= m.pre_shift")
112 * 1: At least one of pre_shift and increment is zero
120 unsigned pre_shift; /* shift for the dividend before multiplying */ member in struct:util_fast_udiv_info
137 n = n >> info.pre_shift;
157 n = n >> info.pre_shift;
172 assert(info.pre_shift == 0);
H A Dfast_idiv_by_const.c61 result.pre_shift = 0;
70 result.pre_shift = 0;
145 result.pre_shift = 0;
152 result.pre_shift = 0;
157 unsigned pre_shift = 0; local in function:util_compute_fast_udiv_info
161 pre_shift += 1;
163 result = util_compute_fast_udiv_info(shifted_D, num_bits - pre_shift,
165 /* expect no increment or pre_shift in this path */
166 assert(result.increment == 0 && result.pre_shift == 0);
167 result.pre_shift
[all...]
/xsrc/external/mit/MesaLib/dist/src/util/
H A Dfast_idiv_by_const.h87 * if m.pre_shift > 0: emit("n >>>= m.pre_shift")
95 * if m.pre_shift > 0: emit("n >>>= m.pre_shift")
112 * 1: At least one of pre_shift and increment is zero
120 unsigned pre_shift; /* shift for the dividend before multiplying */ member in struct:util_fast_udiv_info
137 n = n >> info.pre_shift;
157 n = n >> info.pre_shift;
172 assert(info.pre_shift == 0);
H A Dfast_idiv_by_const.c62 result.pre_shift = 0;
70 result.pre_shift = 0;
145 result.pre_shift = 0;
152 result.pre_shift = 0;
157 unsigned pre_shift = 0; local in function:util_compute_fast_udiv_info
161 pre_shift += 1;
163 result = util_compute_fast_udiv_info(shifted_D, num_bits - pre_shift,
165 /* expect no increment or pre_shift in this path */
166 assert(result.increment == 0 && result.pre_shift == 0);
167 result.pre_shift
[all...]
/xsrc/external/mit/MesaLib.old/dist/src/compiler/nir/
H A Dnir_opt_idiv_const.c40 if (m.pre_shift)
41 n = nir_ushr(b, n, nir_imm_int(b, m.pre_shift));
/xsrc/external/mit/MesaLib/dist/src/compiler/nir/
H A Dnir_opt_idiv_const.c40 if (m.pre_shift)
41 n = nir_ushr_imm(b, n, m.pre_shift);
/xsrc/external/mit/MesaLib.old/dist/src/util/tests/fast_idiv_by_const/
H A Dfast_idiv_by_const_test.cpp150 n = n >> m.pre_shift;
164 n = n >> m.pre_shift;
/xsrc/external/mit/MesaLib/dist/src/util/tests/fast_idiv_by_const/
H A Dfast_idiv_by_const_test.cpp147 n = n >> m.pre_shift;
161 n = n >> m.pre_shift;
/xsrc/external/mit/MesaLib.old/dist/src/gallium/auxiliary/gallivm/
H A Dlp_bld_conv.c994 LLVMValueRef pre_shift[LP_MAX_VECTOR_LENGTH]; local in function:lp_build_conv
998 pre_shift[i] = tmp[i];
1008 pre_shift[i] = tmp[i];
1016 tmp[i] = LLVMBuildSub(builder, tmp[i], pre_shift[i], "");
/xsrc/external/mit/MesaLib/dist/src/gallium/auxiliary/gallivm/
H A Dlp_bld_conv.c1024 LLVMValueRef pre_shift[LP_MAX_VECTOR_LENGTH]; local in function:lp_build_conv
1028 pre_shift[i] = tmp[i];
1038 pre_shift[i] = tmp[i];
1046 tmp[i] = LLVMBuildSub(builder, tmp[i], pre_shift[i], "");
/xsrc/external/mit/MesaLib.old/dist/src/intel/common/
H A Dgen_mi_builder.h728 if (m.pre_shift)
729 N = gen_mi_ushr32_imm(b, N, m.pre_shift);
/xsrc/external/mit/MesaLib.old/dist/src/amd/common/
H A Dac_llvm_build.h193 LLVMValueRef pre_shift,
199 LLVMValueRef pre_shift,
H A Dac_llvm_build.c662 LLVMValueRef pre_shift,
668 num = LLVMBuildLShr(builder, num, pre_shift, "");
685 LLVMValueRef pre_shift,
691 num = LLVMBuildLShr(builder, num, pre_shift, "");
659 ac_build_fast_udiv(struct ac_llvm_context * ctx,LLVMValueRef num,LLVMValueRef multiplier,LLVMValueRef pre_shift,LLVMValueRef post_shift,LLVMValueRef increment) argument
682 ac_build_fast_udiv_nuw(struct ac_llvm_context * ctx,LLVMValueRef num,LLVMValueRef multiplier,LLVMValueRef pre_shift,LLVMValueRef post_shift,LLVMValueRef increment) argument
/xsrc/external/mit/MesaLib.old/dist/src/gallium/drivers/iris/
H A Diris_query.c470 if (m.pre_shift) {
474 if (m.pre_shift < 32)
475 emit_alu_shl(batch, MI_ALU_R0, MI_ALU_R0, 32 - m.pre_shift);
/xsrc/external/mit/MesaLib/dist/src/gallium/drivers/radeonsi/
H A Dsi_state.h545 unsigned pre_shift; /* shift for the dividend before multiplying */ member in struct:si_fast_udiv_info32
H A Dsi_state.c4674 info.pre_shift,
4690 STATIC_ASSERT(sizeof(divisor_factors[0].pre_shift) == 4);
/xsrc/external/mit/MesaLib/dist/src/amd/llvm/
H A Dac_llvm_build.h215 LLVMValueRef multiplier, LLVMValueRef pre_shift,
218 LLVMValueRef multiplier, LLVMValueRef pre_shift,
H A Dac_llvm_build.c715 LLVMValueRef multiplier, LLVMValueRef pre_shift,
720 num = LLVMBuildLShr(builder, num, pre_shift, "");
733 LLVMValueRef multiplier, LLVMValueRef pre_shift,
738 num = LLVMBuildLShr(builder, num, pre_shift, "");
714 ac_build_fast_udiv(struct ac_llvm_context * ctx,LLVMValueRef num,LLVMValueRef multiplier,LLVMValueRef pre_shift,LLVMValueRef post_shift,LLVMValueRef increment) argument
732 ac_build_fast_udiv_nuw(struct ac_llvm_context * ctx,LLVMValueRef num,LLVMValueRef multiplier,LLVMValueRef pre_shift,LLVMValueRef post_shift,LLVMValueRef increment) argument
/xsrc/external/mit/MesaLib/dist/src/intel/common/
H A Dmi_builder.h1115 if (m.pre_shift)
1116 N = mi_ushr32_imm(b, N, m.pre_shift);
/xsrc/external/mit/MesaLib/dist/src/asahi/compiler/
H A Dagx_compile.c115 agx_index preshift = agx_mov_imm(b, 32, info.pre_shift);
122 if (info.pre_shift != 0) n = agx_ushr(b, n, preshift);
/xsrc/external/mit/MesaLib.old/dist/src/gallium/drivers/radeonsi/
H A Dsi_state.c4416 unsigned pre_shift; /* shift for the dividend before multiplying */ member in struct:util_fast_udiv_info32
4430 info.pre_shift,
4447 STATIC_ASSERT(sizeof(divisor_factors[0].pre_shift) == 4);
/xsrc/external/mit/MesaLib/dist/src/amd/compiler/
H A Daco_instruction_selection.cpp294 bool pre_shift = info.pre_shift != 0; local in function:aco::__anon562fcc110110::emit_v_div_u32
299 if (!pre_shift && !increment && !multiply && !post_shift) {
305 if (pre_shift) {
307 bld.vop2(aco_opcode::v_lshrrev_b32, Definition(pre_shift_dst), Operand::c32(info.pre_shift),
/xsrc/external/mit/MesaLib/dist/src/amd/vulkan/
H A Dradv_cmd_buffer.c2953 *(inputs++) = info.pre_shift | (info.increment << 8) | (info.post_shift << 16);

Completed in 101 milliseconds