Home
last modified time | relevance | path

Searched refs:num_elements (Results 1 – 25 of 154) sorted by relevance

1234567

/third_party/unity/src/
Dunity.h269 … expected, actual, num_elements) UNITY_TEST_ASSERT_INT_ARRAY_WITHIN((delta)… argument
270 … expected, actual, num_elements) UNITY_TEST_ASSERT_INT8_ARRAY_WITHIN((delta)… argument
271 … expected, actual, num_elements) UNITY_TEST_ASSERT_INT16_ARRAY_WITHIN((delta)… argument
272 … expected, actual, num_elements) UNITY_TEST_ASSERT_INT32_ARRAY_WITHIN((delta)… argument
273 … expected, actual, num_elements) UNITY_TEST_ASSERT_INT64_ARRAY_WITHIN((delta)… argument
274 … expected, actual, num_elements) UNITY_TEST_ASSERT_UINT_ARRAY_WITHIN((delta)… argument
275 … expected, actual, num_elements) UNITY_TEST_ASSERT_UINT8_ARRAY_WITHIN((delta)… argument
276 … expected, actual, num_elements) UNITY_TEST_ASSERT_UINT16_ARRAY_WITHIN((delta)… argument
277 … expected, actual, num_elements) UNITY_TEST_ASSERT_UINT32_ARRAY_WITHIN((delta)… argument
278 … expected, actual, num_elements) UNITY_TEST_ASSERT_UINT64_ARRAY_WITHIN((delta)… argument
[all …]
Dunity_internals.h566 const UNITY_UINT32 num_elements,
591 const UNITY_UINT32 num_elements,
599 const UNITY_UINT32 num_elements,
614 const UNITY_UINT32 num_elements,
639 const UNITY_UINT32 num_elements,
659 const UNITY_UINT32 num_elements,
873num_elements, line, message) UnityAssertNumbersArrayWithin( (delta), (UNITY_INTER… argument
874num_elements, line, message) UnityAssertNumbersArrayWithin((UNITY_UINT8 )(delta), (UNITY_INTERN… argument
875num_elements, line, message) UnityAssertNumbersArrayWithin((UNITY_UINT16)(delta), (UNITY_INTERNA… argument
876num_elements, line, message) UnityAssertNumbersArrayWithin((UNITY_UINT32)(delta), (UNITY_INTERNA… argument
[all …]
Dunity.c777 const UNITY_UINT32 num_elements, in UnityAssertEqualIntArray() argument
783 UNITY_UINT32 elements = num_elements; in UnityAssertEqualIntArray()
789 if (num_elements == 0) in UnityAssertEqualIntArray()
851 UnityPrintNumberUnsigned(num_elements - elements - 1); in UnityAssertEqualIntArray()
907 const UNITY_UINT32 num_elements, in UnityAssertEqualFloatArray() argument
912 UNITY_UINT32 elements = num_elements; in UnityAssertEqualFloatArray()
939 UnityPrintNumberUnsigned(num_elements - elements - 1); in UnityAssertEqualFloatArray()
1048 const UNITY_UINT32 num_elements, in UnityAssertEqualDoubleArray() argument
1053 UNITY_UINT32 elements = num_elements; in UnityAssertEqualDoubleArray()
1080 UnityPrintNumberUnsigned(num_elements - elements - 1); in UnityAssertEqualDoubleArray()
[all …]
/third_party/cJSON/tests/unity/src/
Dunity.h240 …(expected, actual, num_elements) UNITY_TEST_ASSERT_EQUAL_INT_ARRAY(… argument
241 …(expected, actual, num_elements) UNITY_TEST_ASSERT_EQUAL_INT8_ARRAY(… argument
242 …(expected, actual, num_elements) UNITY_TEST_ASSERT_EQUAL_INT16_ARRAY(… argument
243 …(expected, actual, num_elements) UNITY_TEST_ASSERT_EQUAL_INT32_ARRAY(… argument
244 …(expected, actual, num_elements) UNITY_TEST_ASSERT_EQUAL_INT64_ARRAY(… argument
245 …(expected, actual, num_elements) UNITY_TEST_ASSERT_EQUAL_UINT_ARRAY(… argument
246 …(expected, actual, num_elements) UNITY_TEST_ASSERT_EQUAL_UINT8_ARRAY(… argument
247 …(expected, actual, num_elements) UNITY_TEST_ASSERT_EQUAL_UINT16_ARRAY(… argument
248 …(expected, actual, num_elements) UNITY_TEST_ASSERT_EQUAL_UINT32_ARRAY(… argument
249 …(expected, actual, num_elements) UNITY_TEST_ASSERT_EQUAL_UINT64_ARRAY(… argument
[all …]
Dunity_internals.h474 const UNITY_UINT32 num_elements,
499 const UNITY_UINT32 num_elements,
507 const UNITY_UINT32 num_elements,
532 const UNITY_UINT32 num_elements,
552 const UNITY_UINT32 num_elements,
734num_elements, line, message) UnityAssertEqualIntArray((UNITY_INTERNAL_PTR)(expected), (UN… argument
735num_elements, line, message) UnityAssertEqualIntArray((UNITY_INTERNAL_PTR)(expected), (UNI… argument
736 …, num_elements, line, message) UnityAssertEqualIntArray((UNITY_INTERNAL_PTR)(expected), (UNI… argument
737 …, num_elements, line, message) UnityAssertEqualIntArray((UNITY_INTERNAL_PTR)(expected), (UNI… argument
738num_elements, line, message) UnityAssertEqualIntArray((UNITY_INTERNAL_PTR)(expected), (UNI… argument
[all …]
Dunity.c603 const UNITY_UINT32 num_elements, in UnityAssertEqualIntArray() argument
609 UNITY_UINT32 elements = num_elements; in UnityAssertEqualIntArray()
614 if (num_elements == 0) in UnityAssertEqualIntArray()
661 UnityPrintNumberUnsigned(num_elements - elements - 1); in UnityAssertEqualIntArray()
714 const UNITY_UINT32 num_elements, in UnityAssertEqualFloatArray() argument
719 UNITY_UINT32 elements = num_elements; in UnityAssertEqualFloatArray()
740 UnityPrintNumberUnsigned(num_elements - elements - 1); in UnityAssertEqualFloatArray()
844 const UNITY_UINT32 num_elements, in UnityAssertEqualDoubleArray() argument
849 UNITY_UINT32 elements = num_elements; in UnityAssertEqualDoubleArray()
870 UnityPrintNumberUnsigned(num_elements - elements - 1); in UnityAssertEqualDoubleArray()
[all …]
/third_party/mesa3d/src/util/
Du_idalloc.c42 if (new_num_elements > buf->num_elements) { in util_idalloc_resize()
44 memset(&buf->data[buf->num_elements], 0, in util_idalloc_resize()
45 (new_num_elements - buf->num_elements) * sizeof(*buf->data)); in util_idalloc_resize()
46 buf->num_elements = new_num_elements; in util_idalloc_resize()
68 unsigned num_elements = buf->num_elements; in util_idalloc_alloc() local
70 for (unsigned i = buf->lowest_free_idx; i < num_elements; i++) { in util_idalloc_alloc()
81 util_idalloc_resize(buf, MAX2(num_elements, 1) * 2); in util_idalloc_alloc()
83 buf->lowest_free_idx = num_elements; in util_idalloc_alloc()
84 buf->data[num_elements] |= 1; in util_idalloc_alloc()
85 return num_elements * 32; in util_idalloc_alloc()
[all …]
Du_idalloc.h48 unsigned num_elements; /* number of allocated elements of "data" */ member
73 return id / 32 < buf->num_elements && in util_idalloc_exists()
78 for (uint32_t i = 0, mask = (buf)->num_elements ? (buf)->data[0] : 0, id, \
79 count = (buf)->num_elements; \
Dslab.c112 parent->num_elements = num_items; in slab_create_parent()
150 p_atomic_set(&page->u.num_remaining, pool->parent->num_elements); in slab_destroy_child()
152 for (unsigned i = 0; i < pool->parent->num_elements; ++i) { in slab_destroy_child()
180 pool->parent->num_elements * pool->parent->element_size); in slab_add_new_page()
185 for (unsigned i = 0; i < pool->parent->num_elements; ++i) { in slab_add_new_page()
/third_party/mesa3d/src/gallium/frontends/va/
Dbuffer.c40 unsigned int size, unsigned int num_elements, void *data, in vlVaCreateBuffer() argument
55 buf->num_elements = num_elements; in vlVaCreateBuffer()
56 buf->data = MALLOC(size * num_elements); in vlVaCreateBuffer()
64 memcpy(buf->data, data, size * num_elements); in vlVaCreateBuffer()
76 unsigned int num_elements) in vlVaBufferSetNumElements() argument
94 buf->data = REALLOC(buf->data, buf->size * buf->num_elements, in vlVaBufferSetNumElements()
95 buf->size * num_elements); in vlVaBufferSetNumElements()
96 buf->num_elements = num_elements; in vlVaBufferSetNumElements()
246 unsigned int *size, unsigned int *num_elements) in vlVaBufferInfo() argument
263 *num_elements = buf->num_elements; in vlVaBufferInfo()
[all …]
Dpicture_mpeg12.c47 assert(buf->size >= sizeof(VAPictureParameterBufferMPEG2) && buf->num_elements == 1); in vlVaHandlePictureParameterBufferMPEG12()
85 assert(buf->size >= sizeof(VAIQMatrixBufferMPEG2) && buf->num_elements == 1); in vlVaHandleIQMatrixBufferMPEG12()
111 context->desc.mpeg12.num_slices += buf->num_elements; in vlVaHandleSliceParameterBufferMPEG12()
Dpicture_vc1.c34 assert(buf->size >= sizeof(VAPictureParameterBufferVC1) && buf->num_elements == 1); in vlVaHandlePictureParameterBufferVC1()
72 assert(buf->size >= sizeof(VASliceParameterBufferVC1) && buf->num_elements == 1); in vlVaHandleSliceParameterBufferVC1()
73 context->desc.vc1.slice_count += buf->num_elements; in vlVaHandleSliceParameterBufferVC1()
/third_party/skia/third_party/externals/tint/src/sem/
Dconstant.cc28 const Type* ElemType(const Type* ty, size_t num_elements) { in ElemType() argument
31 if (num_elements != 1) { in ElemType()
34 << ty->type_name() << "' num_elements: " << num_elements; in ElemType()
39 if (num_elements != vec->Width()) { in ElemType()
42 << ty->type_name() << "' num_elements: " << num_elements; in ElemType()
/third_party/unity/docs/
DUnityAssertionsReference.md429 `expected` and `actual` parameters are both arrays. `num_elements` specifies the
441 ##### `TEST_ASSERT_EQUAL_INT_ARRAY (expected, actual, num_elements)`
443 ##### `TEST_ASSERT_EQUAL_INT8_ARRAY (expected, actual, num_elements)`
445 ##### `TEST_ASSERT_EQUAL_INT16_ARRAY (expected, actual, num_elements)`
447 ##### `TEST_ASSERT_EQUAL_INT32_ARRAY (expected, actual, num_elements)`
449 ##### `TEST_ASSERT_EQUAL_INT64_ARRAY (expected, actual, num_elements)`
451 ##### `TEST_ASSERT_EQUAL_UINT_ARRAY (expected, actual, num_elements)`
453 ##### `TEST_ASSERT_EQUAL_UINT8_ARRAY (expected, actual, num_elements)`
455 ##### `TEST_ASSERT_EQUAL_UINT16_ARRAY (expected, actual, num_elements)`
457 ##### `TEST_ASSERT_EQUAL_UINT32_ARRAY (expected, actual, num_elements)`
[all …]
/third_party/mesa3d/src/gallium/auxiliary/util/
Du_vertex_state_cache.c69 unsigned num_elements, in util_vertex_state_cache_get() argument
82 key.input.num_elements = num_elements; in util_vertex_state_cache_get()
83 for (unsigned i = 0; i < num_elements; i++) in util_vertex_state_cache_get()
103 state = cache->create(screen, buffer, elements, num_elements, indexbuf, in util_vertex_state_cache_get()
/third_party/cJSON/tests/unity/docs/
DUnityAssertionsReference.md410 `expected` and `actual` parameters are both arrays. `num_elements` specifies the
422 ##### `TEST_ASSERT_EQUAL_INT_ARRAY (expected, actual, num_elements)`
424 ##### `TEST_ASSERT_EQUAL_INT8_ARRAY (expected, actual, num_elements)`
426 ##### `TEST_ASSERT_EQUAL_INT16_ARRAY (expected, actual, num_elements)`
428 ##### `TEST_ASSERT_EQUAL_INT32_ARRAY (expected, actual, num_elements)`
430 ##### `TEST_ASSERT_EQUAL_INT64_ARRAY (expected, actual, num_elements)`
432 ##### `TEST_ASSERT_EQUAL_UINT_ARRAY (expected, actual, num_elements)`
434 ##### `TEST_ASSERT_EQUAL_UINT8_ARRAY (expected, actual, num_elements)`
436 ##### `TEST_ASSERT_EQUAL_UINT16_ARRAY (expected, actual, num_elements)`
438 ##### `TEST_ASSERT_EQUAL_UINT32_ARRAY (expected, actual, num_elements)`
[all …]
/third_party/mesa3d/src/gallium/drivers/freedreno/a6xx/
Dfd6_context.c73 fd6_vertex_state_create(struct pipe_context *pctx, unsigned num_elements, in fd6_vertex_state_create() argument
79 memcpy(state->base.pipe, elements, sizeof(*elements) * num_elements); in fd6_vertex_state_create()
80 state->base.num_elements = num_elements; in fd6_vertex_state_create()
82 fd_ringbuffer_new_object(ctx->pipe, 4 * (num_elements * 2 + 1)); in fd6_vertex_state_create()
85 OUT_PKT4(ring, REG_A6XX_VFD_DECODE(0), 2 * num_elements); in fd6_vertex_state_create()
86 for (int32_t i = 0; i < num_elements; i++) { in fd6_vertex_state_create()
/third_party/mesa3d/src/gallium/drivers/svga/
Dsvga_state_vs.c212 unsigned num_elements; in compile_passthrough_vs() local
232 num_elements = 1; in compile_passthrough_vs()
247 dst[num_elements] = ureg_DECL_output(ureg, in compile_passthrough_vs()
250 src[num_elements] = ureg_DECL_vs_input(ureg, num_elements); in compile_passthrough_vs()
251 num_elements++; in compile_passthrough_vs()
258 for (i = 0; i < num_elements; i++) { in compile_passthrough_vs()
/third_party/mesa3d/src/gallium/drivers/zink/
Dzink_state.c41 unsigned num_elements, in zink_create_vertex_elements_state() argument
60 for (i = 0; i < num_elements; ++i) { in zink_create_vertex_elements_state()
125 assert(num_decomposed + num_elements <= PIPE_MAX_ATTRIBS); in zink_create_vertex_elements_state()
138 …memcpy(&ves->hw_state.dynattribs[num_elements], &ves->hw_state.dynattribs[i], sizeof(VkVertexInput… in zink_create_vertex_elements_state()
139 ves->hw_state.dynattribs[num_elements].location = num_elements; in zink_create_vertex_elements_state()
140 ves->hw_state.dynattribs[num_elements].offset += j * size; in zink_create_vertex_elements_state()
142 …memcpy(&ves->hw_state.attribs[num_elements], &ves->hw_state.attribs[i], sizeof(VkVertexInputAttrib… in zink_create_vertex_elements_state()
143 ves->hw_state.attribs[num_elements].location = num_elements; in zink_create_vertex_elements_state()
144 ves->hw_state.attribs[num_elements].offset += j * size; in zink_create_vertex_elements_state()
146 num_elements++; in zink_create_vertex_elements_state()
[all …]
/third_party/mesa3d/src/compiler/nir/
Dnir_lower_const_arrays_to_uniforms.c68 if (idx >= ret->num_elements) in set_const_initialiser()
103 ret->num_elements = glsl_get_matrix_columns(type); in rebuild_const_array_initialiser()
104 ret->elements = ralloc_array(mem_ctx, nir_constant *, ret->num_elements); in rebuild_const_array_initialiser()
106 for (unsigned i = 0; i < ret->num_elements; i++) { in rebuild_const_array_initialiser()
114 ret->num_elements = glsl_get_length(type); in rebuild_const_array_initialiser()
115 ret->elements = ralloc_array(mem_ctx, nir_constant *, ret->num_elements); in rebuild_const_array_initialiser()
117 for (unsigned i = 0; i < ret->num_elements; i++) { in rebuild_const_array_initialiser()
Dnir_lower_io_arrays_to_elements.c66 unsigned num_elements = glsl_type_is_array((*p)->type) ? in get_io_offset() local
69 num_elements *= glsl_type_is_matrix(glsl_without_array((*p)->type)) ? in get_io_offset()
72 *element_index += num_elements * index; in get_io_offset()
97 unsigned num_elements = glsl_type_is_array(type) ? in get_array_elements() local
100 num_elements *= glsl_type_is_matrix(glsl_without_array(type)) ? in get_array_elements()
103 elements = (nir_variable **) calloc(num_elements, sizeof(nir_variable *)); in get_array_elements()
/third_party/mesa3d/src/intel/isl/
Disl_surface_state.c817 uint32_t num_elements = buffer_size / info->stride_B; in isl_genX() local
819 assert(num_elements > 0); in isl_genX()
821 assert(num_elements <= dev->max_buffer_size); in isl_genX()
828 assert(num_elements <= (1ull << 27)); in isl_genX()
866 s.Height = ((num_elements - 1) >> 7) & 0x3fff; in isl_genX()
867 s.Width = (num_elements - 1) & 0x7f; in isl_genX()
868 s.Depth = ((num_elements - 1) >> 21) & 0x3ff; in isl_genX()
870 s.Height = ((num_elements - 1) >> 7) & 0x1fff; in isl_genX()
871 s.Width = (num_elements - 1) & 0x7f; in isl_genX()
872 s.Depth = ((num_elements - 1) >> 20) & 0x7f; in isl_genX()
[all …]
/third_party/mesa3d/src/gallium/drivers/nouveau/nv30/
Dnv30_vbo.c136 for (i = 0; i < nv30->vertex->num_elements; i++) { in nv30_update_user_vbufs()
208 redefine = MAX2(vertex->num_elements, nv30->state.num_vtxelts);
214 for (i = 0; i < vertex->num_elements; i++) {
228 for (i = 0; i < vertex->num_elements; i++) {
253 nv30->state.num_vtxelts = vertex->num_elements;
257 nv30_vertex_state_create(struct pipe_context *pipe, unsigned num_elements, argument
264 so = MALLOC(sizeof(*so) + sizeof(*so->element) * num_elements);
267 memcpy(so->pipe, elements, sizeof(*elements) * num_elements);
268 so->num_elements = num_elements;
274 for (i = 0; i < num_elements; i++) {
/third_party/mesa3d/src/gallium/drivers/nouveau/nvc0/
Dnvc0_vbo.c51 unsigned num_elements, in nvc0_vertex_state_create() argument
60 num_elements * sizeof(struct nvc0_vertex_element)); in nvc0_vertex_state_create()
63 so->num_elements = num_elements; in nvc0_vertex_state_create()
77 for (i = 0; i < num_elements; ++i) { in nvc0_vertex_state_create()
151 for (i = 0; i < num_elements; ++i) { in nvc0_vertex_state_create()
237 PUSH_SPACE(push, nvc0->vertex->num_elements * 8); in nvc0_update_user_vbufs()
238 for (i = 0; i < nvc0->vertex->num_elements; ++i) { in nvc0_update_user_vbufs()
322 PUSH_SPACE(push, vertex->num_elements * 8); in nvc0_validate_vertex_buffers()
323 for (i = 0; i < vertex->num_elements; ++i) { in nvc0_validate_vertex_buffers()
388 PUSH_SPACE(push, nvc0->num_vtxbufs * 8 + nvc0->vertex->num_elements); in nvc0_validate_vertex_buffers_shared()
[all …]
/third_party/selinux/libsepol/cil/src/
Dcil_mem.c52 void *cil_calloc(size_t num_elements, size_t element_size) in cil_calloc() argument
54 void *mem = calloc(num_elements, element_size); in cil_calloc()

1234567