Lines Matching refs:num_indices
214 size_t num_indices = ((size - 1)/(INDEX_CAPACITY)) + 1; in sarray_new() local
217 size_t num_indices = ((size - 1)/BUCKET_SIZE) + 1; in sarray_new() local
230 arr->capacity = num_indices*INDEX_CAPACITY; in sarray_new()
232 objc_malloc (sizeof (struct sindex *) * num_indices); in sarray_new()
238 idxsize += num_indices; in sarray_new()
242 arr->capacity = num_indices*BUCKET_SIZE; in sarray_new()
244 objc_malloc (sizeof (struct sbucket *) * num_indices); in sarray_new()
247 idxsize += num_indices; in sarray_new()
266 for (counter = 0; counter < num_indices; counter++) in sarray_new()
271 for (counter = 0; counter < num_indices; counter++) in sarray_new()
486 size_t num_indices = ((oarr->capacity - 1)/INDEX_CAPACITY) + 1; in sarray_lazy_copy() local
489 size_t num_indices = ((oarr->capacity - 1)/BUCKET_SIZE) + 1; in sarray_lazy_copy() local
508 objc_malloc (sizeof (struct sindex *) * num_indices); in sarray_lazy_copy()
509 memcpy (new_indices, oarr->indices, sizeof (struct sindex *) * num_indices); in sarray_lazy_copy()
514 objc_malloc (sizeof (struct sbucket *) * num_indices); in sarray_lazy_copy()
515 memcpy (new_buckets, oarr->buckets, sizeof (struct sbucket *) * num_indices); in sarray_lazy_copy()
519 idxsize += num_indices; in sarray_lazy_copy()