Home
last modified time | relevance | path

Searched refs:post_shift (Results 1 – 13 of 13) sorted by relevance

/third_party/mesa3d/src/util/
Dfast_idiv_by_const.h121 unsigned post_shift; /* shift for the dividend after multiplying */ member
146 n = n >> info.post_shift; in util_fast_udiv32()
160 n = n >> info.post_shift; in util_fast_udiv32_nuw()
175 n = n >> info.post_shift; in util_fast_udiv32_u31_d_not_one()
Dfast_idiv_by_const.c63 result.post_shift = 0; in util_compute_fast_udiv_info()
71 result.post_shift = 0; in util_compute_fast_udiv_info()
146 result.post_shift = exponent; in util_compute_fast_udiv_info()
153 result.post_shift = down_exponent; in util_compute_fast_udiv_info()
/third_party/mesa3d/src/compiler/nir/
Dnir_opt_idiv_const.c45 if (m.post_shift) in build_udiv()
46 n = nir_ushr_imm(b, n, m.post_shift); in build_udiv()
/third_party/mesa3d/src/util/tests/
Dfast_idiv_by_const_test.cpp150 n = n >> m.post_shift; in fast_udiv_add_sat()
165 n = n >> m.post_shift; in fast_udiv_mul_add()
/third_party/mesa3d/src/amd/llvm/
Dac_llvm_build.h217 LLVMValueRef post_shift, LLVMValueRef increment);
220 LLVMValueRef post_shift, LLVMValueRef increment);
222 LLVMValueRef multiplier, LLVMValueRef post_shift);
Dac_llvm_build.c720 LLVMValueRef post_shift, LLVMValueRef increment) in ac_build_fast_udiv() argument
730 return LLVMBuildLShr(builder, num, post_shift, ""); in ac_build_fast_udiv()
738 LLVMValueRef post_shift, LLVMValueRef increment) in ac_build_fast_udiv_nuw() argument
748 return LLVMBuildLShr(builder, num, post_shift, ""); in ac_build_fast_udiv_nuw()
754 LLVMValueRef multiplier, LLVMValueRef post_shift) in ac_build_fast_udiv_u31_d_not_one() argument
762 return LLVMBuildLShr(builder, num, post_shift, ""); in ac_build_fast_udiv_u31_d_not_one()
/third_party/ffmpeg/libavcodec/
Dwavpack.c83 int post_shift; member
325 return bit << s->post_shift; in wv_get_value_integer()
1148 s->post_shift = bpp * 8 - orig_bpp + ((s->frame_flags >> 13) & 0x1f); in wavpack_decode_block()
1149 if (s->post_shift < 0 || s->post_shift > 31) { in wavpack_decode_block()
1331 if (s->hybrid && bpp == 4 && s->post_shift < 8 && s->shift > 8) { in wavpack_decode_block()
1332 s->post_shift += 8; in wavpack_decode_block()
/third_party/mesa3d/src/intel/common/
Dmi_builder.h1126 if (m.post_shift) in mi_udiv32_imm()
1127 N = mi_ushr32_imm(b, N, m.post_shift); in mi_udiv32_imm()
/third_party/mesa3d/src/gallium/drivers/radeonsi/
Dsi_state.h553 unsigned post_shift; /* shift for the dividend after multiplying */ member
Dsi_state.c4865 info.post_shift, in si_compute_fast_udiv_info32()
4881 STATIC_ASSERT(sizeof(divisor_factors[0].post_shift) == 4); in si_create_vertex_elements()
/third_party/mesa3d/src/asahi/compiler/
Dagx_compile.c202 agx_index postshift = agx_mov_imm(b, 32, info.post_shift); in agx_udiv_const()
215 if (info.post_shift != 0) n = agx_ushr(b, n, postshift); in agx_udiv_const()
/third_party/mesa3d/src/amd/compiler/
Daco_instruction_selection.cpp306 bool post_shift = info.post_shift != 0; in emit_v_div_u32() local
308 if (!pre_shift && !increment && !multiply && !post_shift) { in emit_v_div_u32()
315 pre_shift_dst = (increment || multiply || post_shift) ? bld.tmp(v1) : dst; in emit_v_div_u32()
322 increment_dst = (post_shift || multiply) ? bld.tmp(v1) : dst; in emit_v_div_u32()
328 multiply_dst = post_shift ? bld.tmp(v1) : dst; in emit_v_div_u32()
333 if (post_shift) { in emit_v_div_u32()
334 bld.vop2(aco_opcode::v_lshrrev_b32, Definition(dst), Operand::c32(info.post_shift), in emit_v_div_u32()
/third_party/mesa3d/src/amd/vulkan/
Dradv_cmd_buffer.c3289 *(inputs++) = info.pre_shift | (info.increment << 8) | (info.post_shift << 16); in emit_prolog_inputs()