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/fast_idiv_by_const/
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/ffmpeg/libavcodec/
Dwavpack.c82 int post_shift; member
324 return bit << s->post_shift; in wv_get_value_integer()
1143 s->post_shift = bpp * 8 - orig_bpp + ((s->frame_flags >> 13) & 0x1f); in wavpack_decode_block()
1144 if (s->post_shift < 0 || s->post_shift > 31) { in wavpack_decode_block()
1324 if (s->hybrid && bpp == 4 && s->post_shift < 8 && s->shift > 8) { in wavpack_decode_block()
1325 s->post_shift += 8; in wavpack_decode_block()
/third_party/mesa3d/src/amd/llvm/
Dac_llvm_build.h216 LLVMValueRef post_shift, LLVMValueRef increment);
219 LLVMValueRef post_shift, LLVMValueRef increment);
221 LLVMValueRef multiplier, LLVMValueRef post_shift);
Dac_llvm_build.c716 LLVMValueRef post_shift, LLVMValueRef increment) in ac_build_fast_udiv() argument
726 return LLVMBuildLShr(builder, num, post_shift, ""); in ac_build_fast_udiv()
734 LLVMValueRef post_shift, LLVMValueRef increment) in ac_build_fast_udiv_nuw() argument
744 return LLVMBuildLShr(builder, num, post_shift, ""); in ac_build_fast_udiv_nuw()
750 LLVMValueRef multiplier, LLVMValueRef post_shift) in ac_build_fast_udiv_u31_d_not_one() argument
758 return LLVMBuildLShr(builder, num, post_shift, ""); in ac_build_fast_udiv_u31_d_not_one()
/third_party/mesa3d/src/gallium/drivers/radeonsi/
Dsi_state.h546 unsigned post_shift; /* shift for the dividend after multiplying */ member
Dsi_state.c4675 info.post_shift, in si_compute_fast_udiv_info32()
4691 STATIC_ASSERT(sizeof(divisor_factors[0].post_shift) == 4); in si_create_vertex_elements()
/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/asahi/compiler/
Dagx_compile.c117 agx_index postshift = agx_mov_imm(b, 32, info.post_shift); in agx_udiv_const()
130 if (info.post_shift != 0) n = agx_ushr(b, n, postshift); in agx_udiv_const()
/third_party/mesa3d/src/amd/compiler/
Daco_instruction_selection.cpp297 bool post_shift = info.post_shift != 0; in emit_v_div_u32() local
299 if (!pre_shift && !increment && !multiply && !post_shift) { in emit_v_div_u32()
306 pre_shift_dst = (increment || multiply || post_shift) ? bld.tmp(v1) : dst; in emit_v_div_u32()
313 increment_dst = (post_shift || multiply) ? bld.tmp(v1) : dst; in emit_v_div_u32()
319 multiply_dst = post_shift ? bld.tmp(v1) : dst; in emit_v_div_u32()
324 if (post_shift) { in emit_v_div_u32()
325 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.c2953 *(inputs++) = info.pre_shift | (info.increment << 8) | (info.post_shift << 16); in emit_prolog_inputs()