Lines Matching refs:size

51  * Define the maximum size for array pages in an cl_vector_t.
52 * This size is in objects, not bytes.
60 * copy operator used when size of the user object doesn't fit one of the
75 IN const void *const p_src, IN const size_t size)
77 memcpy(p_dest, p_src, size);
98 IN const void *const p_src, IN const size_t size)
100 CL_ASSERT(size == sizeof(uint8_t));
101 UNUSED_PARAM(size);
124 IN const void *const p_src, IN const size_t size)
126 CL_ASSERT(size == sizeof(uint16_t));
127 UNUSED_PARAM(size);
150 IN const void *const p_src, IN const size_t size)
152 CL_ASSERT(size == sizeof(uint32_t));
153 UNUSED_PARAM(size);
176 IN const void *const p_src, IN const size_t size)
178 CL_ASSERT(size == sizeof(uint64_t));
179 UNUSED_PARAM(size);
271 for (i = 0; i < p_vector->size; i++) {
302 if (index >= p_vector->size)
321 if (index >= p_vector->size) {
326 if ((status != CL_SUCCESS) && (p_vector->size < index))
384 /* Determine the allocation size for the new array elements. */
410 cl_vector_set_size(IN cl_vector_t * const p_vector, IN const size_t size)
420 /* Check to see if the requested size is the same as the existing size. */
421 if (size == p_vector->size)
425 if (size >= p_vector->capacity) {
429 /* Calculate the new capacity, taking into account the grow size. */
430 new_capacity = size;
431 if (size % p_vector->grow_size) {
434 (size % p_vector->grow_size);
443 if (size > p_vector->size && p_vector->pfn_init) {
444 for (index = p_vector->size; index < size; index++) {
464 p_vector->size++;
468 for (index = size; index < p_vector->size; index++) {
477 p_vector->size = size;
488 if (min_size > p_vector->size) {
509 for (i = 0; i < p_vector->size; i++) {
527 for (i = 0; i < p_vector->size; i++) {
548 i = p_vector->size;
560 return (p_vector->size);