Home
last modified time | relevance | path

Searched refs:bit_size (Results 1 – 25 of 282) sorted by relevance

12345678910>>...12

/third_party/mesa3d/src/compiler/nir/
Dnir_lower_bool_to_bitsize.c30 assert(def->bit_size > 1); in assert_ssa_def_is_not_1bit()
38 if (def->bit_size == 1) { in rewrite_1bit_ssa_def_to_32bit()
39 def->bit_size = 32; in rewrite_1bit_ssa_def_to_32bit()
64 uint32_t bit_size = nir_src_bit_size(alu->src[start_idx].src); in make_sources_canonical() local
66 if (nir_src_bit_size(alu->src[i].src) != bit_size) { in make_sources_canonical()
68 nir_op convert_op = get_bool_convert_opcode(bit_size); in make_sources_canonical()
147 uint32_t bit_size = nir_src_bit_size(alu->src[0].src); in lower_alu_instr() local
148 assert(bit_size > 1); in lower_alu_instr()
167 opcode = bit_size == 8 ? nir_op_f2b8 : in lower_alu_instr()
168 bit_size == 16 ? nir_op_f2b16 : nir_op_f2b32; in lower_alu_instr()
[all …]
Dnir_opt_idiv_const.c33 return nir_imm_intN_t(b, 0, n->bit_size); in build_udiv()
38 util_compute_fast_udiv_info(d, n->bit_size, n->bit_size); in build_udiv()
43 n = nir_uadd_sat(b, n, nir_imm_intN_t(b, m.increment, n->bit_size)); in build_udiv()
44 n = nir_umul_high(b, n, nir_imm_intN_t(b, m.multiplier, n->bit_size)); in build_udiv()
56 return nir_imm_intN_t(b, 0, n->bit_size); in build_umod()
58 return nir_iand(b, n, nir_imm_intN_t(b, d - 1, n->bit_size)); in build_umod()
61 nir_imm_intN_t(b, d, n->bit_size))); in build_umod()
68 int64_t int_min = u_intN_min(n->bit_size); in build_idiv()
70 return nir_b2i(b, nir_ieq_imm(b, n, int_min), n->bit_size); in build_idiv()
75 return nir_imm_intN_t(b, 0, n->bit_size); in build_idiv()
[all …]
Dnir_lower_bit_size.c34 nir_alu_type type, unsigned bit_size) in convert_to_bit_size() argument
38 if ((type & (nir_type_uint | nir_type_int)) && bit_size == 32 && in convert_to_bit_size()
45 return nir_convert_to_bit_size(bld, src, type, bit_size); in convert_to_bit_size()
49 lower_alu_instr(nir_builder *bld, nir_alu_instr *alu, unsigned bit_size) in lower_alu_instr() argument
52 unsigned dst_bit_size = alu->dest.dest.ssa.bit_size; in lower_alu_instr()
63 src = convert_to_bit_size(bld, src, type, bit_size); in lower_alu_instr()
76 assert(dst_bit_size * 2 <= bit_size); in lower_alu_instr()
93 nir_imm_intN_t(bld, int_min, bit_size), in lower_alu_instr()
94 nir_imm_intN_t(bld, int_max, bit_size)); in lower_alu_instr()
99 nir_imm_intN_t(bld, uint_max, bit_size)); in lower_alu_instr()
[all …]
Dnir_builder.h215 assert(then_def->bit_size == else_def->bit_size); in nir_if_phi()
217 then_def->num_components, then_def->bit_size, NULL); in nir_if_phi()
246 nir_ssa_undef(nir_builder *build, unsigned num_components, unsigned bit_size) in nir_ssa_undef() argument
249 nir_ssa_undef_instr_create(build->shader, num_components, bit_size); in nir_ssa_undef()
262 unsigned bit_size, const nir_const_value *value) in nir_build_imm() argument
265 nir_load_const_instr_create(build->shader, num_components, bit_size); in nir_build_imm()
277 nir_imm_zero(nir_builder *build, unsigned num_components, unsigned bit_size) in nir_imm_zero() argument
280 nir_load_const_instr_create(build->shader, num_components, bit_size); in nir_imm_zero()
290 nir_imm_boolN_t(nir_builder *build, bool x, unsigned bit_size) in nir_imm_boolN_t() argument
292 nir_const_value v = nir_const_value_for_bool(x, bit_size); in nir_imm_boolN_t()
[all …]
Dnir_builtin_builder.c51 nir_imm_intN_t(b, 0, cross->bit_size)); in nir_cross4()
63 nir_ssa_def *zero = nir_imm_intN_t(b, 0, x->bit_size); in nir_nextafter()
64 nir_ssa_def *one = nir_imm_intN_t(b, 1, x->bit_size); in nir_nextafter()
70 uint64_t sign_mask = 1ull << (x->bit_size - 1); in nir_nextafter()
73 if (nir_is_denorm_flush_to_zero(b->shader->info.float_controls_execution_mode, x->bit_size)) { in nir_nextafter()
74 switch (x->bit_size) { in nir_nextafter()
87 x = nir_fmul(b, x, nir_imm_floatN_t(b, 1.0, x->bit_size)); in nir_nextafter()
94 nir_imm_intN_t(b, sign_mask | min_abs, x->bit_size), in nir_nextafter()
99 nir_imm_intN_t(b, min_abs, x->bit_size), in nir_nextafter()
115 nir_ssa_def *f0 = nir_imm_floatN_t(b, 0.0, vec->bit_size); in nir_normalize()
[all …]
Dnir_lower_system_values.c46 const unsigned bit_size = intrin->dest.ssa.bit_size; in sanitize_32bit_sysval() local
47 if (bit_size == 32) in sanitize_32bit_sysval()
50 intrin->dest.ssa.bit_size = 32; in sanitize_32bit_sysval()
51 return nir_u2u(b, &intrin->dest.ssa, bit_size); in sanitize_32bit_sysval()
55 build_global_group_size(nir_builder *b, unsigned bit_size) in build_global_group_size() argument
58 nir_ssa_def *num_workgroups = nir_load_num_workgroups(b, bit_size); in build_global_group_size()
59 return nir_imul(b, nir_u2u(b, group_size, bit_size), in build_global_group_size()
79 const unsigned bit_size = intrin->dest.ssa.bit_size; in lower_system_value_instr() local
170 return build_global_group_size(b, bit_size); in lower_system_value_instr()
216 intrin->dest.ssa.bit_size); in lower_system_value_instr()
[all …]
Dnir_lower_bool_to_int32.c29 assert(def->bit_size > 1); in assert_ssa_def_is_not_1bit()
37 if (def->bit_size == 1) { in rewrite_1bit_ssa_def_to_32bit()
38 def->bit_size = 32; in rewrite_1bit_ssa_def_to_32bit()
63 if (alu->dest.dest.ssa.bit_size != 1) in lower_alu_instr()
109 assert(alu->dest.dest.ssa.bit_size > 1); in lower_alu_instr()
111 assert(alu->src[i].src.ssa->bit_size > 1); in lower_alu_instr()
115 if (alu->dest.dest.ssa.bit_size == 1) in lower_alu_instr()
116 alu->dest.dest.ssa.bit_size = 32; in lower_alu_instr()
147 if (load->def.bit_size == 1) { in nir_lower_bool_to_int32_impl()
151 load->def.bit_size = 32; in nir_lower_bool_to_int32_impl()
Dnir_lower_bool_to_float.c30 assert(def->bit_size > 1); in assert_ssa_def_is_not_1bit()
38 if (def->bit_size == 1) { in rewrite_1bit_ssa_def_to_32bit()
39 def->bit_size = 32; in rewrite_1bit_ssa_def_to_32bit()
62 if (alu->dest.dest.ssa.bit_size != 1) in lower_alu_instr()
112 assert(alu->dest.dest.ssa.bit_size > 1); in lower_alu_instr()
114 assert(alu->src[i].src.ssa->bit_size > 1); in lower_alu_instr()
123 if (alu->dest.dest.ssa.bit_size == 1) in lower_alu_instr()
124 alu->dest.dest.ssa.bit_size = 32; in lower_alu_instr()
159 if (load->def.bit_size == 1) { in nir_lower_bool_to_float_impl()
163 load->def.bit_size = 32; in nir_lower_bool_to_float_impl()
Dnir_opt_constant_folding.c60 unsigned bit_size = 0; in try_fold_alu() local
62 bit_size = alu->dest.dest.ssa.bit_size; in try_fold_alu()
68 if (bit_size == 0 && in try_fold_alu()
70 bit_size = alu->src[i].src.ssa->bit_size; in try_fold_alu()
87 if (bit_size == 0) in try_fold_alu()
88 bit_size = 32; in try_fold_alu()
99 bit_size, srcs, in try_fold_alu()
104 alu->dest.dest.ssa.bit_size, in try_fold_alu()
221 intrin->dest.ssa.bit_size, v); in try_fold_intrinsic()
246 intrin->dest.ssa.bit_size); in try_fold_intrinsic()
[all …]
Dnir_opt_phi_precision.c156 widening_conversion_op(nir_instr *instr, unsigned *bit_size) in widening_conversion_op() argument
174 *bit_size = nir_src_bit_size(alu->src[0].src); in widening_conversion_op()
179 if (nir_dest_bit_size(alu->dest.dest) <= *bit_size) in widening_conversion_op()
202 if (phi->dest.ssa.bit_size != 32) in try_move_narrowing_dst()
274 assert(lc->def.bit_size == 32); in can_convert_load_const()
304 find_widening_op(nir_phi_instr *phi, unsigned *bit_size) in find_widening_op() argument
309 *bit_size = 0; in find_widening_op()
333 if (*bit_size && (*bit_size != src_bit_size)) in find_widening_op()
337 *bit_size = src_bit_size; in find_widening_op()
372 if (phi->dest.ssa.bit_size != 32) in try_move_widening_src()
[all …]
Dnir_lower_subgroups.c58 assert(intrin->src[0].ssa->bit_size == 64); in lower_subgroup_op_to_32bit()
71 assert(value->num_components == 4 && value->bit_size == 32); in ballot_type_to_uint()
79 unsigned num_components, unsigned bit_size) in uint_to_ballot_type() argument
84 unsigned total_bits = bit_size * num_components; in uint_to_ballot_type()
87 if (total_bits > value->bit_size * value->num_components) in uint_to_ballot_type()
88 value = nir_pad_vector_imm_int(b, value, 0, total_bits / value->bit_size); in uint_to_ballot_type()
90 value = nir_bitcast_vector(b, value, bit_size); in uint_to_ballot_type()
121 1, intrin->dest.ssa.bit_size, NULL); in lower_subgroup_op_to_scalar()
135 if (lower_to_32bit && chan_intrin->src[0].ssa->bit_size == 64) { in lower_subgroup_op_to_scalar()
157 1, intrin->dest.ssa.bit_size, NULL); in lower_vote_eq_to_scalar()
[all …]
Dnir_builtin_builder.h131 uint64_t masks = 1ull << (x->bit_size - 1); in nir_copysign()
134 nir_ssa_def *s = nir_imm_intN_t(b, masks, x->bit_size); in nir_copysign()
135 nir_ssa_def *v = nir_imm_intN_t(b, maskv, x->bit_size); in nir_copysign()
151 nir_ssa_def *zero = nir_imm_floatN_t(b, 0.0, x->bit_size); in nir_fdim()
202 nir_ssa_def *nan = nir_imm_floatN_t(b, NAN, x->bit_size); in nir_nan()
223 uint64_t mask = 1ull << (s->bit_size - 1); in nir_select()
224 s = nir_iand(b, s, nir_imm_intN_t(b, mask, s->bit_size)); in nir_select()
239 val = nir_isub(b, nir_imm_intN_t(b, a->bit_size - 1, 32), nir_ufind_msb(b, a)); in nir_clz_u()
240 return nir_u2u(b, val, a->bit_size); in nir_clz_u()
246 nir_ssa_def *cond = nir_ieq(b, a, nir_imm_intN_t(b, 0, a->bit_size)); in nir_ctz_u()
[all …]
Dnir_search.c201 nir_op_for_search_op(uint16_t sop, unsigned bit_size) in nir_op_for_search_op() argument
208 switch (bit_size) { \ in nir_op_for_search_op()
217 switch (bit_size) { \ in nir_op_for_search_op()
227 switch (bit_size) { \ in nir_op_for_search_op()
282 if (value->bit_size > 0 && in match_value()
283 nir_src_bit_size(instr->src[src].src) != value->bit_size) in match_value()
355 if (load->def.bit_size < 16) in match_value()
370 unsigned bit_size = nir_src_bit_size(instr->src[src].src); in match_value() local
371 uint64_t mask = u_uintN_max(bit_size); in match_value()
404 if (expr->value.bit_size > 0 && in match_expression()
[all …]
/third_party/ltp/tools/sparse/sparse-src/
Dsymbol.c89 unsigned long bit_size; member
101 if (sym->bit_size < 0 && is_array_type(sym)) in lay_out_union()
104 if (sym->bit_size > info->bit_size) in lay_out_union()
105 info->bit_size = sym->bit_size; in lay_out_union()
116 return sym->bit_size; in bitfield_base_size()
124 unsigned long bit_size, align_bit_mask; in lay_out_struct() local
128 bit_size = info->bit_size; in lay_out_struct()
129 base_size = sym->bit_size; in lay_out_struct()
149 unsigned long bit_offset = bit_size & align_bit_mask; in lay_out_struct()
155 bit_size = (bit_size + align_bit_mask) & ~align_bit_mask; in lay_out_struct()
[all …]
/third_party/mesa3d/src/intel/compiler/
Dbrw_nir_lower_mem_access_bit_sizes.c32 unsigned num_components, unsigned bit_size, in dup_mem_intrinsic() argument
71 num_components, bit_size, NULL); in dup_mem_intrinsic()
89 const unsigned bit_size = intrin->dest.ssa.bit_size; in lower_mem_load_bit_size() local
91 const unsigned bytes_read = num_components * (bit_size / 8); in lower_mem_load_bit_size()
94 if (bit_size == 32 && align >= 32 && intrin->num_components <= 4 && in lower_mem_load_bit_size()
100 if (bit_size < 32 && !needs_scalar && nir_src_is_const(*offset_src)) { in lower_mem_load_bit_size()
105 assert(load_offset % (bit_size / 8) == 0); in lower_mem_load_bit_size()
115 num_components, bit_size); in lower_mem_load_bit_size()
145 num_components, bit_size); in lower_mem_load_bit_size()
166 const unsigned bit_size = value->bit_size; in lower_mem_store_bit_size() local
[all …]
Dbrw_nir_rt.c29 unsigned num_components, unsigned bit_size) in resize_deref() argument
33 deref->dest.ssa.bit_size == bit_size) in resize_deref()
37 if (deref->dest.ssa.bit_size != bit_size && in resize_deref()
44 idx = nir_imm_intN_t(b, nir_src_as_int(deref->arr.index), bit_size); in resize_deref()
46 idx = nir_i2i(b, deref->arr.index.ssa, bit_size); in resize_deref()
53 deref->dest.ssa.bit_size = bit_size; in resize_deref()
403 unsigned num_components, unsigned bit_size) in build_load_uniform() argument
405 return nir_load_uniform(b, num_components, bit_size, nir_imm_int(b, 0), in build_load_uniform()
407 .range = num_components * bit_size / 8); in build_load_uniform()
410 #define load_trampoline_param(b, name, num_components, bit_size) \ argument
[all …]
/third_party/boost/libs/gil/test/core/
Dpromote_integral.cpp120 struct bit_size_impl<T, true> : bg::detail::promote_integral::bit_size<T>::type
124 std::size_t bit_size() in bit_size() function
163 << ", sizeof (bits): " << bit_size<Type>() in apply()
171 << ", sizeof (bits): " << bit_size<promoted_integral_type>() in apply()
179 << ", sizeof (bits): " << bit_size<ExpectedPromotedType>() in apply()
210 std::size_t min_size = 2 * bit_size<T>() - 1; in apply()
220 if (bit_size<short>() >= min_size) in apply()
224 else if (bit_size<int>() >= min_size) in apply()
228 else if (bit_size<long>() >= min_size) in apply()
233 else if (bit_size<boost::long_long_type>() >= min_size) in apply()
[all …]
/third_party/mesa3d/src/intel/vulkan/
Danv_nir_lower_ubo_loads.c45 unsigned bit_size = load->dest.ssa.bit_size; in lower_ubo_load_instr() local
46 assert(bit_size >= 8 && bit_size % 8 == 0); in lower_ubo_load_instr()
47 unsigned byte_size = bit_size / 8; in lower_ubo_load_instr()
79 load->num_components, bit_size); in lower_ubo_load_instr()
85 nir_ssa_def *zero = nir_imm_zero(b, load->num_components, bit_size); in lower_ubo_load_instr()
95 load->dest.ssa.bit_size, addr, in lower_ubo_load_instr()
105 load->dest.ssa.bit_size, addr, in lower_ubo_load_instr()
/third_party/mesa3d/src/microsoft/compiler/
Ddxil_nir_algebraic.py43 def remove_unsupported_casts(arr, bit_size, mask, max_unsigned_float, min_signed_float, max_signed_… argument
46 if outer_op_sz == bit_size:
50 inner_op = inner_op_type + str(int(bit_size))
52 if (src_sz == bit_size):
59 shift = src_sz - bit_size
66 inner_op = inner_op_type + str(int(bit_size))
70 if (src_sz == bit_size):
87 shift = outer_op_sz - bit_size
/third_party/boost/libs/geometry/test/util/
Dpromote_integral.cpp163 struct bit_size_impl<T, true> : bg::detail::promote_integral::bit_size<T>::type
176 > : bg::detail::promote_integral::bit_size
185 std::size_t bit_size() in bit_size() function
225 << ", sizeof (bits): " << bit_size<Type>() in apply()
233 << ", sizeof (bits): " << bit_size<promoted_integral_type>() in apply()
241 << ", sizeof (bits): " << bit_size<ExpectedPromotedType>() in apply()
272 std::size_t min_size = 2 * bit_size<T>() - 1; in apply()
282 if (bit_size<short>() >= min_size) in apply()
286 else if (bit_size<int>() >= min_size) in apply()
290 else if (bit_size<long>() >= min_size) in apply()
[all …]
/third_party/gstreamer/gstreamer/libs/gst/base/
Dgstbitwriter.h34 #define GST_BIT_WRITER_BIT_SIZE(writer) ((writer)->bit_size)
51 guint bit_size; member
148 guint32 new_bit_size = bits + bitwriter->bit_size; in _gst_bit_writer_check_remaining()
151 g_assert (bitwriter->bit_size <= bitwriter->bit_capacity); in _gst_bit_writer_check_remaining()
162 clear_pos = ((bitwriter->bit_size + 7) >> 3); in _gst_bit_writer_check_remaining()
184 byte_pos = (bitwriter->bit_size >> 3); \
185 bit_offset = (bitwriter->bit_size & 0x07); \
189 bitwriter->bit_size <= bitwriter->bit_capacity); \
194 bitwriter->bit_size += fill_bits; \
233 return bitwriter->bit_capacity - bitwriter->bit_size; in gst_bit_writer_get_remaining_unchecked()
[all …]
/third_party/mesa3d/src/gallium/drivers/zink/nir_to_spirv/
Dnir_to_spirv.c109 get_fvec_constant(struct ntv_context *ctx, unsigned bit_size,
113 get_uvec_constant(struct ntv_context *ctx, unsigned bit_size,
117 get_ivec_constant(struct ntv_context *ctx, unsigned bit_size,
237 emit_float_const(struct ntv_context *ctx, int bit_size, double value) in emit_float_const() argument
239 assert(bit_size == 16 || bit_size == 32 || bit_size == 64); in emit_float_const()
240 return spirv_builder_const_float(&ctx->builder, bit_size, value); in emit_float_const()
244 emit_uint_const(struct ntv_context *ctx, int bit_size, uint64_t value) in emit_uint_const() argument
246 assert(bit_size == 8 || bit_size == 16 || bit_size == 32 || bit_size == 64); in emit_uint_const()
247 return spirv_builder_const_uint(&ctx->builder, bit_size, value); in emit_uint_const()
251 emit_int_const(struct ntv_context *ctx, int bit_size, int64_t value) in emit_int_const() argument
[all …]
/third_party/mesa3d/src/gallium/auxiliary/gallivm/
Dlp_bld_nir.h70 unsigned bit_size,
76 unsigned bit_size,
82 unsigned nc, unsigned bit_size,
88 unsigned nc, unsigned bit_size,
102 unsigned nc, unsigned bit_size,
105 unsigned writemask, unsigned nc, unsigned bit_size,
110 unsigned bit_size,
127 unsigned bit_size,
137 unsigned bit_size,
159 unsigned nc, unsigned bit_size,
[all …]
/third_party/mesa3d/src/gallium/drivers/r600/sb/
Dsb_valtable.cpp390 assert(id < bit_size); in get()
397 assert(id < bit_size); in set()
410 assert(id < bit_size); in set_chk()
433 if (cur_data_size && size > bit_size && bit_size % bt_bits) { in resize()
434 basetype clear_mask = (~(basetype)0u) << (bit_size % bt_bits); in resize()
438 bit_size = size; in resize()
442 assert(start < bit_size); in find_bit()
458 return bit_size; in find_bit()
531 std::swap(bit_size, bs2.bit_size); in swap()
535 if (bit_size != bs2.bit_size) in operator ==()
[all …]
/third_party/mesa3d/src/compiler/nir/tests/
Dload_store_vectorizer_tests.cpp52 … uint32_t id, unsigned bit_size=32, unsigned components=1,
55 uint32_t id, unsigned bit_size=32, unsigned components=1,
59 uint32_t id, unsigned bit_size=32, unsigned components=1,
62 uint32_t id, unsigned bit_size=32, unsigned components=1, unsigned wrmask=0xf,
66 unsigned bit_size=32, unsigned components=1);
68 unsigned bit_size=32, unsigned components=1, unsigned wrmask=0xf);
74 unsigned bit_size,
203 unsigned bit_size, unsigned components, unsigned access) in create_indirect_load() argument
223 nir_ssa_dest_init(&load->instr, &load->dest, components, bit_size, NULL); in create_indirect_load()
231 int byte_size = (bit_size == 1 ? 32 : bit_size) / 8; in create_indirect_load()
[all …]

12345678910>>...12