Home
last modified time | relevance | path

Searched refs:pre_shift (Results 1 – 11 of 11) sorted by relevance

/external/mesa3d/src/util/
Dfast_idiv_by_const.c61 result.pre_shift = 0; in util_compute_fast_udiv_info()
70 result.pre_shift = 0; in util_compute_fast_udiv_info()
145 result.pre_shift = 0; in util_compute_fast_udiv_info()
152 result.pre_shift = 0; in util_compute_fast_udiv_info()
157 unsigned pre_shift = 0; in util_compute_fast_udiv_info() local
161 pre_shift += 1; in util_compute_fast_udiv_info()
163 result = util_compute_fast_udiv_info(shifted_D, num_bits - pre_shift, in util_compute_fast_udiv_info()
166 assert(result.increment == 0 && result.pre_shift == 0); in util_compute_fast_udiv_info()
167 result.pre_shift = pre_shift; in util_compute_fast_udiv_info()
Dfast_idiv_by_const.h120 unsigned pre_shift; /* shift for the dividend before multiplying */ member
137 n = n >> info.pre_shift; in util_fast_udiv32()
157 n = n >> info.pre_shift; in util_fast_udiv32_nuw()
172 assert(info.pre_shift == 0); in util_fast_udiv32_u31_d_not_one()
/external/mesa3d/src/compiler/nir/
Dnir_opt_idiv_const.c40 if (m.pre_shift) in build_udiv()
41 n = nir_ushr_imm(b, n, m.pre_shift); in build_udiv()
/external/mesa3d/src/gallium/auxiliary/gallivm/
Dlp_bld_conv.c1013 LLVMValueRef pre_shift[LP_MAX_VECTOR_LENGTH]; in lp_build_conv() local
1017 pre_shift[i] = tmp[i]; in lp_build_conv()
1027 pre_shift[i] = tmp[i]; in lp_build_conv()
1035 tmp[i] = LLVMBuildSub(builder, tmp[i], pre_shift[i], ""); in lp_build_conv()
/external/mesa3d/src/util/tests/fast_idiv_by_const/
Dfast_idiv_by_const_test.cpp150 n = n >> m.pre_shift; in fast_udiv_add_sat()
164 n = n >> m.pre_shift; in fast_udiv_mul_add()
/external/mesa3d/src/amd/llvm/
Dac_llvm_build.h207 LLVMValueRef multiplier, LLVMValueRef pre_shift,
210 LLVMValueRef multiplier, LLVMValueRef pre_shift,
Dac_llvm_build.c666 LLVMValueRef multiplier, LLVMValueRef pre_shift, in ac_build_fast_udiv() argument
671 num = LLVMBuildLShr(builder, num, pre_shift, ""); in ac_build_fast_udiv()
684 LLVMValueRef multiplier, LLVMValueRef pre_shift, in ac_build_fast_udiv_nuw() argument
689 num = LLVMBuildLShr(builder, num, pre_shift, ""); in ac_build_fast_udiv_nuw()
/external/mesa3d/src/intel/common/
Dgen_mi_builder.h880 if (m.pre_shift) in gen_mi_udiv32_imm()
881 N = gen_mi_ushr32_imm(b, N, m.pre_shift); in gen_mi_udiv32_imm()
/external/mesa3d/src/gallium/drivers/radeonsi/
Dsi_state.h548 unsigned pre_shift; /* shift for the dividend before multiplying */ member
Dsi_state.c4515 info.pre_shift, in si_compute_fast_udiv_info32()
4531 STATIC_ASSERT(sizeof(divisor_factors[0].pre_shift) == 4); in si_create_vertex_elements()
/external/mesa3d/src/amd/compiler/
Daco_instruction_selection.cpp277 bool pre_shift = info.pre_shift != 0; in emit_v_div_u32() local
282 if (!pre_shift && !increment && !multiply && !post_shift) { in emit_v_div_u32()
288 if (pre_shift) { in emit_v_div_u32()
290 …d.vop2(aco_opcode::v_lshrrev_b32, Definition(pre_shift_dst), Operand((uint32_t)info.pre_shift), a); in emit_v_div_u32()