Home
last modified time | relevance | path

Searched refs:elem_size (Results 1 – 25 of 77) sorted by relevance

1234

/third_party/protobuf/ruby/ext/google/protobuf_c/
Drepeated_field.c193 int elem_size = native_slot_size(self->field_type); in RepeatedField_reserve() local
203 self->elements = ALLOC_N(uint8_t, elem_size * self->capacity); in RepeatedField_reserve()
205 memcpy(self->elements, old_elems, self->size * elem_size); in RepeatedField_reserve()
352 size_t elem_size = native_slot_size(field_type); in RepeatedField_dup() local
357 for (i = 0; i < self->size; i++, off += elem_size) { in RepeatedField_dup()
373 size_t elem_size = native_slot_size(field_type); in RepeatedField_deep_copy() local
378 for (i = 0; i < self->size; i++, off += elem_size) { in RepeatedField_deep_copy()
398 size_t elem_size = native_slot_size(field_type); in RepeatedField_to_ary() local
403 for (i = 0; i < self->size; i++, off += elem_size) { in RepeatedField_to_ary()
447 size_t elem_size = native_slot_size(field_type); in RepeatedField_eq() local
[all …]
/third_party/ffmpeg/libavfilter/
Dvf_rotate.c362 static av_always_inline void copy_elem(uint8_t *pout, const uint8_t *pin, int elem_size) in copy_elem() argument
365 switch (elem_size) { in copy_elem()
380 memcpy(pout, pin, elem_size); in copy_elem()
385 …ate_internal(uint8_t *dst, const uint8_t *src, int src_linesize, int angle, int elem_size, int len) in simple_rotate_internal() argument
390 memcpy(dst, src, elem_size * len); in simple_rotate_internal()
394 copy_elem(dst + i*elem_size, src + (len-i-1)*src_linesize, elem_size); in simple_rotate_internal()
398 copy_elem(dst + i*elem_size, src + (len-i-1)*elem_size, elem_size); in simple_rotate_internal()
402 copy_elem(dst + i*elem_size, src + i*src_linesize, elem_size); in simple_rotate_internal()
407 …imple_rotate(uint8_t *dst, const uint8_t *src, int src_linesize, int angle, int elem_size, int len) in simple_rotate() argument
409 switch(elem_size) { in simple_rotate()
[all …]
/third_party/ffmpeg/libavcodec/
Daacsbr.h73 INIT_VLC_STATIC(&vlc_sbr[num], 9, sbr_tmp[num].table_size / sbr_tmp[num].elem_size, \
75 sbr_tmp[num].sbr_codes, sbr_tmp[num].elem_size, sbr_tmp[num].elem_size, \
Daacps_common.c293 INIT_VLC_STATIC(&vlc_ps[num], nb_bits, ps_tmp[num].table_size / ps_tmp[num].elem_size, \
295 ps_tmp[num].ps_codes, ps_tmp[num].elem_size, ps_tmp[num].elem_size, \
306 const unsigned int table_size, elem_size; in ps_init_common() member
/third_party/mesa3d/src/mesa/main/
Dglthread_varray.c57 unsigned elem_size = default_elem_size[i]; in _mesa_glthread_reset_vao() local
58 if (!elem_size) in _mesa_glthread_reset_vao()
59 elem_size = 16; in _mesa_glthread_reset_vao()
61 vao->Attrib[i].ElementSize = elem_size; in _mesa_glthread_reset_vao()
64 vao->Attrib[i].Stride = elem_size; in _mesa_glthread_reset_vao()
353 unsigned elem_size = element_size(size, type); in attrib_pointer() local
355 vao->Attrib[attrib].ElementSize = elem_size; in attrib_pointer()
356 vao->Attrib[attrib].Stride = stride ? stride : elem_size; in attrib_pointer()
405 unsigned elem_size = element_size(size, type); in attrib_format() local
408 vao->Attrib[i].ElementSize = elem_size; in attrib_format()
/third_party/mesa3d/src/util/
Dsparse_array.c40 size_t elem_size, size_t node_size) in util_sparse_array_init() argument
43 arr->elem_size = elem_size; in util_sparse_array_init()
102 size = arr->elem_size << arr->node_size_log2; in _util_sparse_array_node_alloc()
191 return (void *)((char *)node_data + (elem_idx * arr->elem_size)); in util_sparse_array_get()
Dsparse_array.h69 size_t elem_size; member
76 size_t elem_size, size_t node_size);
/third_party/ffmpeg/libavutil/
Dmem.c324 void *av_dynarray2_add(void **tab_ptr, int *nb_ptr, size_t elem_size, in av_dynarray2_add() argument
329 FF_DYNARRAY_ADD(INT_MAX, elem_size, *tab_ptr, *nb_ptr, { in av_dynarray2_add()
330 tab_elem_data = (uint8_t *)*tab_ptr + (*nb_ptr) * elem_size; in av_dynarray2_add()
332 memcpy(tab_elem_data, elem_data, elem_size); in av_dynarray2_add()
334 memset(tab_elem_data, FF_MEMORY_POISON, elem_size); in av_dynarray2_add()
/third_party/mesa3d/src/compiler/nir/
Dnir_opt_memcpy.c101 unsigned elem_size; in type_is_tightly_packed() local
102 if (!type_is_tightly_packed(elem_type, &elem_size)) in type_is_tightly_packed()
105 if (elem_size != stride) in type_is_tightly_packed()
Dnir_deref.c281 unsigned elem_size, elem_align; in type_get_array_stride() local
282 size_align(elem_type, &elem_size, &elem_align); in type_get_array_stride()
283 return ALIGN_POT(elem_size, elem_align); in type_get_array_stride()
294 unsigned elem_size, elem_align; in struct_type_get_field_offset() local
295 size_align(glsl_get_struct_field(struct_type, i), &elem_size, &elem_align); in struct_type_get_field_offset()
298 offset += elem_size; in struct_type_get_field_offset()
/third_party/mesa3d/src/compiler/
Dnir_types.cpp787 unsigned elem_size = 0, elem_align = 0; in glsl_size_align_handle_array_and_structs() local
788 size_align(type->fields.array, &elem_size, &elem_align); in glsl_size_align_handle_array_and_structs()
790 *size = type->length * ALIGN_POT(elem_size, elem_align); in glsl_size_align_handle_array_and_structs()
798 unsigned elem_size = 0, elem_align = 0; in glsl_size_align_handle_array_and_structs() local
799 size_align(type->fields.structure[i].type, &elem_size, &elem_align); in glsl_size_align_handle_array_and_structs()
801 *size = ALIGN_POT(*size, elem_align) + elem_size; in glsl_size_align_handle_array_and_structs()
Dglsl_types.cpp2266 unsigned elem_size = vec_type->std140_size(false); in get_explicit_std140_type() local
2267 unsigned stride = glsl_align(elem_size, 16); in get_explicit_std140_type()
2271 unsigned elem_size = this->fields.array->std140_size(row_major); in get_explicit_std140_type() local
2274 unsigned stride = glsl_align(elem_size, 16); in get_explicit_std140_type()
2497 …unsigned elem_size = align_to_stride ? this->explicit_stride : this->fields.array->explicit_size(); in explicit_size() local
2498 assert(this->explicit_stride >= elem_size); in explicit_size()
2500 return this->explicit_stride * (this->length - 1) + elem_size; in explicit_size()
2515 unsigned elem_size = align_to_stride ? this->explicit_stride : elem_type->explicit_size(); in explicit_size() local
2518 return this->explicit_stride * (length - 1) + elem_size; in explicit_size()
2736 unsigned elem_size, elem_align; in get_explicit_type_for_size_align() local
[all …]
/third_party/mesa3d/src/gallium/auxiliary/draw/
Ddraw_context.c898 const void *elements, unsigned elem_size, in draw_set_indexes() argument
901 assert(elem_size == 0 || in draw_set_indexes()
902 elem_size == 1 || in draw_set_indexes()
903 elem_size == 2 || in draw_set_indexes()
904 elem_size == 4); in draw_set_indexes()
906 draw->pt.user.eltSizeIB = elem_size; in draw_set_indexes()
907 if (elem_size) in draw_set_indexes()
908 draw->pt.user.eltMax = elem_buffer_space / elem_size; in draw_set_indexes()
/third_party/mesa3d/src/egl/main/
Deglarray.c181 _eglFlattenArray(_EGLArray *array, void *buffer, EGLint elem_size, EGLint size, in _eglFlattenArray() argument
199 (void *) ((char *) buffer + elem_size * i)); in _eglFlattenArray()
Deglarray.h77 _eglFlattenArray(_EGLArray *array, void *buffer, EGLint elem_size, EGLint size,
/third_party/rust/crates/bindgen/bindgen-tests/tests/expectations/tests/libclang-9/
Dlayout_align.rs134 pub elem_size: ::std::os::raw::c_uint, field
185 ::std::ptr::addr_of!((*ptr).elem_size) as usize - ptr as usize in bindgen_test_layout_rte_kni_fifo()
192 stringify!(elem_size) in bindgen_test_layout_rte_kni_fifo()
/third_party/mesa3d/src/gallium/drivers/r600/
Deg_asm.c84 S_SQ_CF_ALLOC_EXPORT_WORD0_ELEM_SIZE(cf->output.elem_size) | in eg_bytecode_cf_build()
106 S_SQ_CF_ALLOC_EXPORT_WORD0_ELEM_SIZE(cf->output.elem_size) | in eg_bytecode_cf_build()
124 S_SQ_CF_ALLOC_EXPORT_WORD0_ELEM_SIZE(cf->output.elem_size) | in eg_bytecode_cf_build()
161 output->elem_size = G_SQ_CF_ALLOC_EXPORT_WORD0_ELEM_SIZE(word0);
Dr600_asm.h129 unsigned elem_size; member
165 unsigned elem_size; member
/third_party/rust/crates/bindgen/bindgen-tests/tests/headers/
Dlayout_align.h10 unsigned elem_size; /**< Pointer size - for 32/64 bit OS */ member
/third_party/mesa3d/src/vulkan/util/
Dvk_util.h190 __vk_outarray_next(struct __vk_outarray *a, size_t elem_size) in __vk_outarray_next() argument
200 p = (uint8_t *)a->data + (*a->filled_len) * elem_size; in __vk_outarray_next()
/third_party/libbpf/src/
Dbtf_dump.c2032 __s64 elem_size; in btf_dump_array_data() local
2037 elem_size = btf__resolve_size(d->btf, elem_type_id); in btf_dump_array_data()
2038 if (elem_size <= 0) { in btf_dump_array_data()
2040 (ssize_t)elem_size, id); in btf_dump_array_data()
2050 if (elem_size == 1) in btf_dump_array_data()
2069 for (i = 0; i < array->nelems; i++, data += elem_size) { in btf_dump_array_data()
2331 __u32 elem_type_id, elem_size; in btf_dump_type_data_check_zero() local
2335 elem_size = btf__resolve_size(d->btf, elem_type_id); in btf_dump_type_data_check_zero()
2338 ischar = btf_is_int(elem_type) && elem_size == 1; in btf_dump_type_data_check_zero()
2352 (i * elem_size), in btf_dump_type_data_check_zero()
/third_party/mesa3d/src/intel/compiler/
Dbrw_disasm.c898 unsigned elem_size = brw_reg_type_to_size(type); in dest() local
904 elem_size = 4; in dest()
920 elem_size); in dest()
934 elem_size); in dest()
944 elem_size); in dest()
960 format(file, ".%u", 16 / elem_size); in dest()
1060 unsigned elem_size = brw_reg_type_to_size(type); in src_da1() local
1061 format(file, ".%d", sub_reg_num / elem_size); /* use formal style like spec */ in src_da1()
1147 unsigned elem_size = brw_reg_type_to_size(type); in src_da16() local
1151 format(file, ".%d", 16 / elem_size); in src_da16()
/third_party/mesa3d/src/gallium/drivers/vc4/
Dvc4_draw.c198 uint32_t elem_size = in vc4_emit_gl_shader_state() local
203 attr.number_of_bytes_minus_1 = elem_size - 1; in vc4_emit_gl_shader_state()
213 (vb_size - elem_size) / vb->stride); in vc4_emit_gl_shader_state()
/third_party/mesa3d/src/gallium/drivers/svga/
Dsvga_state_sampler.c174 unsigned elem_size = util_format_get_blocksize(sv->base.format); in svga_validate_pipe_sampler_view() local
176 viewDesc.buffer.firstElement = sv->base.u.buf.offset / elem_size; in svga_validate_pipe_sampler_view()
177 viewDesc.buffer.numElements = sv->base.u.buf.size / elem_size; in svga_validate_pipe_sampler_view()
/third_party/libffi/src/
Ddlmalloc.c1081 void* mspace_calloc(mspace msp, size_t n_elements, size_t elem_size);
1094 size_t elem_size, void* chunks[]);
4360 void* dlcalloc(size_t n_elements, size_t elem_size) { in dlcalloc() argument
4364 req = n_elements * elem_size; in dlcalloc()
4365 if (((n_elements | elem_size) & ~(size_t)0xffff) && in dlcalloc()
4366 (req / n_elements != elem_size)) in dlcalloc()
4402 void** dlindependent_calloc(size_t n_elements, size_t elem_size, in dlindependent_calloc() argument
4404 size_t sz = elem_size; /* serves as 1-element array */ in dlindependent_calloc()
4758 void* mspace_calloc(mspace msp, size_t n_elements, size_t elem_size) { in mspace_calloc() argument
4767 req = n_elements * elem_size; in mspace_calloc()
[all …]

1234